apps 0.0.1-beta.102 → 0.0.1-beta.105
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-5C6RAGAS.js → chunk-2B7FHH7S.js} +3 -3
- package/js/{chunk-4UPC36ZL.js → chunk-2RGJMA7N.js} +1 -0
- package/js/{chunk-RN4YB4JT.js → chunk-3UWLQMMK.js} +7 -7
- package/js/{chunk-YWVISRZD.js → chunk-EDXNAZLI.js} +3 -3
- package/js/{chunk-VCYWAA4N.js → chunk-HLMJBE4T.js} +1 -1
- package/js/{chunk-2LSGC7XY.js → chunk-KY7C6BWO.js} +2 -2
- package/js/{chunk-QI66R4FP.js → chunk-OTDKCYMH.js} +5 -3
- package/js/{chunk-2CURR5Y7.js → chunk-PILIRGJA.js} +2 -2
- package/js/{chunk-ILYCJ3HV.js → chunk-QN5BMAG7.js} +3 -3
- package/js/{chunk-7STIP5CS.js → chunk-R3O32PQV.js} +1 -1
- package/js/{chunk-6GAHIQ6X.js → chunk-X45GWW4A.js} +4 -4
- package/js/contracts.js +1 -1
- package/js/effect.js +8 -8
- package/js/graphql.js +13 -11
- package/js/host.js +8 -8
- package/js/index.js +5 -4
- package/js/mcp/effect.js +9 -9
- package/js/mcp.js +19 -12
- package/js/openapi.js +20 -9
- package/js/skills.js +5 -5
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/apps/src/contracts/protocols/current.d.ts +13 -1
- package/types/apps/src/contracts/router.d.ts +2 -1
- package/types/apps/src/implementation/router-catalog.d.ts +4 -0
- package/types/apps/src/implementation/router.d.ts +2 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
appInvocationFetch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HLMJBE4T.js";
|
|
4
4
|
import {
|
|
5
5
|
fromPromise,
|
|
6
6
|
method,
|
|
7
7
|
toPromise
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-R3O32PQV.js";
|
|
9
9
|
import {
|
|
10
10
|
CacheAcquired,
|
|
11
11
|
CacheEntry,
|
|
12
12
|
CacheError,
|
|
13
13
|
cacheLimits,
|
|
14
14
|
scopedSlots
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2RGJMA7N.js";
|
|
16
16
|
import {
|
|
17
17
|
decoderOf
|
|
18
18
|
} from "./chunk-VAI3EVCS.js";
|
|
@@ -4530,6 +4530,7 @@ var HostedTool3 = Schema_exports.Struct({
|
|
|
4530
4530
|
description: Schema_exports.String,
|
|
4531
4531
|
inputSchema: JsonObject2,
|
|
4532
4532
|
readOnly: Schema_exports.optionalKey(Schema_exports.Boolean),
|
|
4533
|
+
kindConfirmed: Schema_exports.optionalKey(Schema_exports.Boolean),
|
|
4533
4534
|
title: Schema_exports.optionalKey(Schema_exports.String),
|
|
4534
4535
|
outputSchema: Schema_exports.optionalKey(JsonObject2),
|
|
4535
4536
|
annotations: Schema_exports.optionalKey(ToolAnnotations2),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
authorCache,
|
|
3
3
|
unavailableCache
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2B7FHH7S.js";
|
|
5
5
|
import {
|
|
6
6
|
accountSecrets,
|
|
7
7
|
boundFailureMessage,
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
parseSkillLoadFailed,
|
|
13
13
|
readCatalog,
|
|
14
14
|
routerSkills
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OTDKCYMH.js";
|
|
16
16
|
import {
|
|
17
17
|
appInvocationFetch
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HLMJBE4T.js";
|
|
19
19
|
import {
|
|
20
20
|
folderSkillsEffect
|
|
21
21
|
} from "./chunk-PBGPES67.js";
|
|
@@ -26,12 +26,12 @@ import {
|
|
|
26
26
|
makeEmitter,
|
|
27
27
|
toEffectApp,
|
|
28
28
|
withPlacements
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-QN5BMAG7.js";
|
|
30
30
|
import {
|
|
31
31
|
declaredOperations,
|
|
32
32
|
locate,
|
|
33
33
|
nativeOperation
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-PILIRGJA.js";
|
|
35
35
|
import {
|
|
36
36
|
accountProviderError,
|
|
37
37
|
appCode,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
httpProviderError,
|
|
40
40
|
parseProviderError,
|
|
41
41
|
toPromise
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-R3O32PQV.js";
|
|
43
43
|
import {
|
|
44
44
|
AccountCheckResult,
|
|
45
45
|
DeclaredProvider,
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
shareCatalog,
|
|
94
94
|
sqlBindingsLimit,
|
|
95
95
|
workflowDurationMillis
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-2RGJMA7N.js";
|
|
97
97
|
import {
|
|
98
98
|
AppSkills,
|
|
99
99
|
SkillFile
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getWithReads
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2B7FHH7S.js";
|
|
4
4
|
import {
|
|
5
5
|
fromPromise,
|
|
6
6
|
method,
|
|
7
7
|
toPromise
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-R3O32PQV.js";
|
|
9
9
|
import {
|
|
10
10
|
CacheError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2RGJMA7N.js";
|
|
12
12
|
import {
|
|
13
13
|
wrap
|
|
14
14
|
} from "./chunk-VAI3EVCS.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fixedRouter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OTDKCYMH.js";
|
|
4
4
|
import {
|
|
5
5
|
nativeOperation,
|
|
6
6
|
operationDeclaration,
|
|
7
7
|
routerDeclaration
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PILIRGJA.js";
|
|
9
9
|
|
|
10
10
|
// src/implementation/protocol-operations.ts
|
|
11
11
|
var protocolOperations = (operations, kinds = {}) => {
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
joinPath,
|
|
6
6
|
mergeMeta
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PILIRGJA.js";
|
|
8
8
|
import {
|
|
9
9
|
isShortenedUpstream,
|
|
10
10
|
parseProviderError,
|
|
11
11
|
providerError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-R3O32PQV.js";
|
|
13
13
|
import {
|
|
14
14
|
ApiErrorResponse,
|
|
15
15
|
CacheError,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
maxFailureFields,
|
|
32
32
|
maxFailureMessageLength,
|
|
33
33
|
maxUpstreamMessageLength
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-2RGJMA7N.js";
|
|
35
35
|
import {
|
|
36
36
|
SkillLoadFailed,
|
|
37
37
|
skillFormatLimits
|
|
@@ -572,6 +572,8 @@ var summaryFields = (name, router, operation, schedules) => {
|
|
|
572
572
|
description: operation.description ?? `${readOnly ? "Query" : "Mutate"} ${name}`,
|
|
573
573
|
...operation.title === void 0 ? {} : { title: operation.title },
|
|
574
574
|
readOnly,
|
|
575
|
+
// A declared operation's kind is the app's own, or its protocol's, such as an HTTP method.
|
|
576
|
+
kindConfirmed: true,
|
|
575
577
|
annotations: { ...operation.annotations, readOnlyHint: readOnly }
|
|
576
578
|
};
|
|
577
579
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fromPromise
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R3O32PQV.js";
|
|
4
4
|
import {
|
|
5
5
|
HostedTool,
|
|
6
6
|
RouterKey,
|
|
7
7
|
RouterMeta,
|
|
8
8
|
reservedRouterKeys
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2RGJMA7N.js";
|
|
10
10
|
import {
|
|
11
11
|
decoderOf,
|
|
12
12
|
schemaArgument
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
declaredOperations,
|
|
3
3
|
nativeOperation,
|
|
4
4
|
nativeRouter
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PILIRGJA.js";
|
|
6
6
|
import {
|
|
7
7
|
fromPromise,
|
|
8
8
|
method
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-R3O32PQV.js";
|
|
10
10
|
import {
|
|
11
11
|
EmittedEvent,
|
|
12
12
|
EventName,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
normalizePlacements,
|
|
18
18
|
placementFields,
|
|
19
19
|
renderPlacement
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2RGJMA7N.js";
|
|
21
21
|
import {
|
|
22
22
|
decoderOf,
|
|
23
23
|
isSchema,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
prepareElicitation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3UWLQMMK.js";
|
|
4
4
|
import {
|
|
5
5
|
failOnNetworkRefusal
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HLMJBE4T.js";
|
|
7
7
|
import {
|
|
8
8
|
accountProviderError,
|
|
9
9
|
bodyUpstreamError,
|
|
10
10
|
fromPromise,
|
|
11
11
|
httpProviderError,
|
|
12
12
|
providerErrorDetail
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-R3O32PQV.js";
|
|
14
14
|
import {
|
|
15
15
|
ElicitationFailed,
|
|
16
16
|
McpCredentialsUnverified,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
defaultMcpClientLimits,
|
|
29
29
|
mcpHealthReserveMs,
|
|
30
30
|
mcpSdkTimerCeilingMs
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-2RGJMA7N.js";
|
|
32
32
|
import {
|
|
33
33
|
jsonSchemaDecoder,
|
|
34
34
|
nestJsonSchema,
|
package/js/contracts.js
CHANGED
package/js/effect.js
CHANGED
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
ApprovalDecision,
|
|
4
4
|
createAppHandler,
|
|
5
5
|
prepareElicitation
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-3UWLQMMK.js";
|
|
7
|
+
import "./chunk-2B7FHH7S.js";
|
|
8
|
+
import "./chunk-OTDKCYMH.js";
|
|
9
|
+
import "./chunk-HLMJBE4T.js";
|
|
10
10
|
import "./chunk-PBGPES67.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-QN5BMAG7.js";
|
|
12
|
+
import "./chunk-PILIRGJA.js";
|
|
13
|
+
import "./chunk-R3O32PQV.js";
|
|
14
14
|
import {
|
|
15
15
|
ToolAnnotations
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2RGJMA7N.js";
|
|
17
17
|
import "./chunk-4PIQKACY.js";
|
|
18
18
|
import {
|
|
19
19
|
compileJsonSchemaDecoder,
|
package/js/graphql.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catalogCache,
|
|
3
3
|
catalogScope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EDXNAZLI.js";
|
|
5
5
|
import {
|
|
6
6
|
protocolOperations
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KY7C6BWO.js";
|
|
8
8
|
import "./chunk-BCSNKUAC.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-3UWLQMMK.js";
|
|
10
10
|
import {
|
|
11
11
|
cacheKey
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-2B7FHH7S.js";
|
|
13
|
+
import "./chunk-OTDKCYMH.js";
|
|
14
14
|
import {
|
|
15
15
|
failOnNetworkRefusal
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HLMJBE4T.js";
|
|
17
17
|
import "./chunk-PBGPES67.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-QN5BMAG7.js";
|
|
19
19
|
import {
|
|
20
20
|
nativeOperation,
|
|
21
21
|
routerDeclaration
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-PILIRGJA.js";
|
|
23
23
|
import {
|
|
24
24
|
accountProviderError,
|
|
25
25
|
graphqlProviderError,
|
|
26
26
|
httpProviderError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-R3O32PQV.js";
|
|
28
28
|
import {
|
|
29
29
|
NetworkRefused,
|
|
30
30
|
ProviderError
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-2RGJMA7N.js";
|
|
32
32
|
import "./chunk-4PIQKACY.js";
|
|
33
33
|
import {
|
|
34
34
|
jsonSchemaDecoder
|
|
@@ -465,7 +465,9 @@ var graphqlCatalog = (options, kinds) => Effect_exports.gen(function* () {
|
|
|
465
465
|
const summarize = (tool) => ({
|
|
466
466
|
name: tool.name,
|
|
467
467
|
description: tool.description,
|
|
468
|
-
readOnly: kindOf(tool) === "query"
|
|
468
|
+
readOnly: kindOf(tool) === "query",
|
|
469
|
+
// The app's `kinds`, or the GraphQL operation type Executor sends.
|
|
470
|
+
kindConfirmed: true
|
|
469
471
|
});
|
|
470
472
|
const describe = (tool) => ({
|
|
471
473
|
...summarize(tool),
|
package/js/host.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAppHandler
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-3UWLQMMK.js";
|
|
4
|
+
import "./chunk-2B7FHH7S.js";
|
|
5
|
+
import "./chunk-OTDKCYMH.js";
|
|
6
|
+
import "./chunk-HLMJBE4T.js";
|
|
7
7
|
import "./chunk-PBGPES67.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-QN5BMAG7.js";
|
|
9
|
+
import "./chunk-PILIRGJA.js";
|
|
10
|
+
import "./chunk-R3O32PQV.js";
|
|
11
11
|
import {
|
|
12
12
|
CacheCommand,
|
|
13
13
|
CacheError,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
WorkflowRun,
|
|
26
26
|
WorkflowRunId,
|
|
27
27
|
WorkflowRunPage
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-2RGJMA7N.js";
|
|
29
29
|
import "./chunk-4PIQKACY.js";
|
|
30
30
|
import "./chunk-VAI3EVCS.js";
|
|
31
31
|
import {
|
package/js/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
query,
|
|
12
12
|
t,
|
|
13
13
|
workflow
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QN5BMAG7.js";
|
|
15
15
|
import {
|
|
16
16
|
dynamicRouter,
|
|
17
17
|
mutation,
|
|
@@ -25,11 +25,11 @@ import {
|
|
|
25
25
|
toolAnnotations,
|
|
26
26
|
withApproval,
|
|
27
27
|
withApprovals
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-PILIRGJA.js";
|
|
29
29
|
import {
|
|
30
30
|
accountProviderError,
|
|
31
31
|
fromPromise
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-R3O32PQV.js";
|
|
33
33
|
import {
|
|
34
34
|
CacheError,
|
|
35
35
|
CalendarSchedule,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
ScheduleTiming,
|
|
49
49
|
SecretsMethod,
|
|
50
50
|
WorkflowFailure
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-2RGJMA7N.js";
|
|
52
52
|
import "./chunk-4PIQKACY.js";
|
|
53
53
|
import {
|
|
54
54
|
array,
|
|
@@ -252,6 +252,7 @@ var mergeSummary = (name, variants) => {
|
|
|
252
252
|
description: first.description,
|
|
253
253
|
...first.title === void 0 ? {} : { title: first.title },
|
|
254
254
|
readOnly: variants.every(([, tool]) => tool.readOnly === true),
|
|
255
|
+
...variants.every(([, tool]) => tool.kindConfirmed === true) ? { kindConfirmed: true } : {},
|
|
255
256
|
...sameAcross("annotations", variants)
|
|
256
257
|
});
|
|
257
258
|
};
|
package/js/mcp/effect.js
CHANGED
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
mcpClientEffect,
|
|
3
3
|
mcpHealthEffect,
|
|
4
4
|
mcpToolsEffect
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-X45GWW4A.js";
|
|
6
6
|
import "../chunk-BCSNKUAC.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-3UWLQMMK.js";
|
|
8
|
+
import "../chunk-2B7FHH7S.js";
|
|
9
|
+
import "../chunk-OTDKCYMH.js";
|
|
10
|
+
import "../chunk-HLMJBE4T.js";
|
|
11
11
|
import "../chunk-PBGPES67.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-QN5BMAG7.js";
|
|
13
|
+
import "../chunk-PILIRGJA.js";
|
|
14
|
+
import "../chunk-R3O32PQV.js";
|
|
15
|
+
import "../chunk-2RGJMA7N.js";
|
|
16
16
|
import "../chunk-4PIQKACY.js";
|
|
17
17
|
import "../chunk-VAI3EVCS.js";
|
|
18
18
|
import "../chunk-URKOTNDA.js";
|
package/js/mcp.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catalogCache,
|
|
3
3
|
catalogScope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EDXNAZLI.js";
|
|
5
5
|
import {
|
|
6
6
|
protocolOperations
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KY7C6BWO.js";
|
|
8
8
|
import {
|
|
9
9
|
adaptMcpTool,
|
|
10
10
|
mcpClientEffect,
|
|
11
11
|
mcpHealthEffect
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-X45GWW4A.js";
|
|
13
13
|
import "./chunk-BCSNKUAC.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-3UWLQMMK.js";
|
|
15
15
|
import {
|
|
16
16
|
cacheKey
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2B7FHH7S.js";
|
|
18
18
|
import {
|
|
19
19
|
operationDescription
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-OTDKCYMH.js";
|
|
21
|
+
import "./chunk-HLMJBE4T.js";
|
|
22
22
|
import "./chunk-PBGPES67.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-QN5BMAG7.js";
|
|
24
24
|
import {
|
|
25
25
|
nativeOperation,
|
|
26
26
|
routerDeclaration
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-PILIRGJA.js";
|
|
28
28
|
import {
|
|
29
29
|
fromPromise,
|
|
30
30
|
method
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-R3O32PQV.js";
|
|
32
32
|
import {
|
|
33
33
|
McpCredentialsUnverified,
|
|
34
34
|
McpError,
|
|
35
35
|
McpServerHeader,
|
|
36
36
|
McpToolMetadata,
|
|
37
37
|
McpToolsOptions
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-2RGJMA7N.js";
|
|
39
39
|
import "./chunk-4PIQKACY.js";
|
|
40
40
|
import "./chunk-VAI3EVCS.js";
|
|
41
41
|
import "./chunk-URKOTNDA.js";
|
|
@@ -102,10 +102,12 @@ var mcpCatalog = (options, kinds) => Effect_exports.gen(function* () {
|
|
|
102
102
|
...tool.annotations,
|
|
103
103
|
readOnlyHint: kindOf(tool) === "query"
|
|
104
104
|
});
|
|
105
|
+
const confirmed = (tool) => Object.hasOwn(kinds, tool.name) ? { kindConfirmed: true } : {};
|
|
105
106
|
const summarize = (tool) => ({
|
|
106
107
|
name: tool.name,
|
|
107
108
|
description: tool.description ?? tool.title ?? tool.name,
|
|
108
109
|
readOnly: kindOf(tool) === "query",
|
|
110
|
+
...confirmed(tool),
|
|
109
111
|
...tool.title === void 0 ? {} : { title: tool.title },
|
|
110
112
|
annotations: annotationsOf(tool)
|
|
111
113
|
});
|
|
@@ -121,7 +123,12 @@ var mcpCatalog = (options, kinds) => Effect_exports.gen(function* () {
|
|
|
121
123
|
);
|
|
122
124
|
const describe = (tool) => operation(tool).pipe(
|
|
123
125
|
Effect_exports.flatMap(
|
|
124
|
-
(selected) => selected === void 0 ? Effect_exports.succeed(void 0) : operationDescription(tool.name, "", selected)
|
|
126
|
+
(selected) => selected === void 0 ? Effect_exports.succeed(void 0) : operationDescription(tool.name, "", selected).pipe(
|
|
127
|
+
Effect_exports.map(({ kindConfirmed: _declared, ...described }) => ({
|
|
128
|
+
...described,
|
|
129
|
+
...confirmed(tool)
|
|
130
|
+
}))
|
|
131
|
+
)
|
|
125
132
|
)
|
|
126
133
|
);
|
|
127
134
|
const router = {
|
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-KY7C6BWO.js";
|
|
12
12
|
import {
|
|
13
13
|
OpenapiCompileError,
|
|
14
14
|
OpenapiCompileErrorCode,
|
|
@@ -29,15 +29,15 @@ import {
|
|
|
29
29
|
isOpenapiTextMedia,
|
|
30
30
|
openapiBinaryResultSchema,
|
|
31
31
|
openapiMediaKind
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-OTDKCYMH.js";
|
|
33
33
|
import {
|
|
34
34
|
failOnNetworkRefusal
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-HLMJBE4T.js";
|
|
36
36
|
import "./chunk-PBGPES67.js";
|
|
37
37
|
import {
|
|
38
38
|
nativeOperation,
|
|
39
39
|
routerDeclaration
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-PILIRGJA.js";
|
|
41
41
|
import {
|
|
42
42
|
accountProviderError,
|
|
43
43
|
bodyUpstreamError,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
method,
|
|
47
47
|
providerErrorDetail,
|
|
48
48
|
toPromise
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-R3O32PQV.js";
|
|
50
50
|
import {
|
|
51
51
|
ApiErrorRecovery,
|
|
52
52
|
ApiErrorResponse,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
RouterMeta,
|
|
58
58
|
cacheLimits,
|
|
59
59
|
defaultOpenapiErrorLimits
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-2RGJMA7N.js";
|
|
61
61
|
import "./chunk-4PIQKACY.js";
|
|
62
62
|
import {
|
|
63
63
|
jsonSchema,
|
|
@@ -2078,6 +2078,10 @@ var binaryInput = {
|
|
|
2078
2078
|
description: "File bytes encoded as base64.",
|
|
2079
2079
|
contentEncoding: "base64"
|
|
2080
2080
|
};
|
|
2081
|
+
var parameterDocumentation = (parameter) => ({
|
|
2082
|
+
...typeof parameter.description === "string" && parameter.description.trim() !== "" ? { description: parameter.description } : {},
|
|
2083
|
+
...parameter.deprecated === true ? { deprecated: true } : {}
|
|
2084
|
+
});
|
|
2081
2085
|
var declaredAt = (document, value, inline) => document.origin(value) ?? inline;
|
|
2082
2086
|
var mediaSchemaAt = (document, at, type, media) => `${declaredAt(document, media, `${at}/content/${pointerToken(type)}`)}/schema`;
|
|
2083
2087
|
var responsesOf = (operation) => operation.responses === void 0 ? {} : record2(operation.responses);
|
|
@@ -2455,7 +2459,11 @@ var compileOpenApiDocument = (entry, inputDocument, options = {}) => {
|
|
|
2455
2459
|
`The querystring parameter at ${parameterAt} must declare one form, JSON or text media type in content.`
|
|
2456
2460
|
);
|
|
2457
2461
|
}
|
|
2458
|
-
parameters.set(`${p.in}:${p.name}`, {
|
|
2462
|
+
parameters.set(`${p.in}:${p.name}`, {
|
|
2463
|
+
parameter: p,
|
|
2464
|
+
documentation: parameterDocumentation(declaration),
|
|
2465
|
+
at: parameterAt
|
|
2466
|
+
});
|
|
2459
2467
|
}
|
|
2460
2468
|
for (const name2 of prefix) {
|
|
2461
2469
|
const key = `path:${name2}`;
|
|
@@ -2467,17 +2475,18 @@ var compileOpenApiDocument = (entry, inputDocument, options = {}) => {
|
|
|
2467
2475
|
if (!parameters.has(key))
|
|
2468
2476
|
parameters.set(key, {
|
|
2469
2477
|
parameter: { name: name2, in: "path", required: true, schema: { type: "string" } },
|
|
2478
|
+
documentation: {},
|
|
2470
2479
|
at: void 0
|
|
2471
2480
|
});
|
|
2472
2481
|
}
|
|
2473
2482
|
const groups = /* @__PURE__ */ new Map();
|
|
2474
|
-
for (const { parameter: p, at: parameterAt } of parameters.values()) {
|
|
2483
|
+
for (const { parameter: p, documentation, at: parameterAt } of parameters.values()) {
|
|
2475
2484
|
const key = p.in === "header" ? "headers" : p.in;
|
|
2476
2485
|
const group = groups.get(key) ?? { properties: {}, required: [] };
|
|
2477
2486
|
const [mediaType2, content] = p.content === void 0 ? [] : Object.entries(p.content)[0] ?? [];
|
|
2478
2487
|
const schema2 = p.schema ?? (content === void 0 ? {} : record2(content).schema ?? {});
|
|
2479
2488
|
const schemaAt = p.schema !== void 0 || mediaType2 === void 0 ? `${parameterAt}/schema` : mediaSchemaAt(document, `${parameterAt}`, mediaType2, content);
|
|
2480
|
-
group.properties[p.name] = parameterAt === void 0 ? () => schema2 : (api) => api(schema2, schemaAt);
|
|
2489
|
+
group.properties[p.name] = parameterAt === void 0 ? () => schema2 : (api) => ({ ...api(schema2, schemaAt), ...documentation });
|
|
2481
2490
|
if (p.required || p.in === "path") group.required.push(p.name);
|
|
2482
2491
|
groups.set(key, group);
|
|
2483
2492
|
}
|
|
@@ -5887,6 +5896,8 @@ var liveOpenapiRouter = (options) => {
|
|
|
5887
5896
|
name: operation.name,
|
|
5888
5897
|
description: operation.description,
|
|
5889
5898
|
readOnly: readOnly(operation),
|
|
5899
|
+
// The app's `kinds`, or the HTTP method Executor sends.
|
|
5900
|
+
kindConfirmed: true,
|
|
5890
5901
|
...operation.tags === void 0 ? {} : { tags: operation.tags }
|
|
5891
5902
|
});
|
|
5892
5903
|
const describe = (operation, bundle) => ({
|
package/js/skills.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catalogCache,
|
|
3
3
|
catalogScope
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-EDXNAZLI.js";
|
|
5
|
+
import "./chunk-2B7FHH7S.js";
|
|
6
6
|
import {
|
|
7
7
|
failOnNetworkRefusal
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HLMJBE4T.js";
|
|
9
9
|
import {
|
|
10
10
|
folderSkillsEffect,
|
|
11
11
|
skillFromFiles
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
httpProviderError,
|
|
17
17
|
method,
|
|
18
18
|
toPromise
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-R3O32PQV.js";
|
|
20
20
|
import {
|
|
21
21
|
NetworkRefused,
|
|
22
22
|
ProviderError,
|
|
23
23
|
networkRefusalStatus
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-2RGJMA7N.js";
|
|
25
25
|
import {
|
|
26
26
|
AppSkillMetadata,
|
|
27
27
|
AppSkillSource,
|