apps 0.0.1-beta.94 → 0.0.1-beta.99
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-6F3WAXVN.js → chunk-2CURR5Y7.js} +3 -3
- package/js/{chunk-ATBBIJ5O.js → chunk-2LSGC7XY.js} +2 -2
- package/js/{chunk-6WC2OWHV.js → chunk-4UPC36ZL.js} +138 -5
- package/js/{chunk-JJZZLNJY.js → chunk-5C6RAGAS.js} +4 -4
- package/js/{chunk-MN5XVRKW.js → chunk-7STIP5CS.js} +1 -1
- package/js/{chunk-TNVB3KLB.js → chunk-ILYCJ3HV.js} +4 -4
- package/js/{chunk-MBCUKNUA.js → chunk-K6TSCYAO.js} +5 -5
- package/js/{chunk-DYE2CKHG.js → chunk-QI66R4FP.js} +21 -7
- package/js/{chunk-FA5MLNYL.js → chunk-RN4YB4JT.js} +19 -12
- package/js/{chunk-RKFLB36H.js → chunk-VAI3EVCS.js} +60 -0
- package/js/{chunk-2GPX2E57.js → chunk-VCYWAA4N.js} +1 -1
- package/js/{chunk-6C2I6JLA.js → chunk-YWVISRZD.js} +4 -4
- package/js/client.js +1 -1
- package/js/contracts.js +9 -1
- package/js/effect.js +9 -9
- package/js/graphql.js +11 -11
- package/js/host.js +9 -9
- package/js/index.js +30 -19
- package/js/mcp/effect.js +10 -10
- package/js/mcp.js +12 -12
- package/js/openapi.js +7 -7
- package/js/skills.js +6 -6
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/apps/src/contracts/host.d.ts +11 -4
- package/types/apps/src/contracts/protocols/current.d.ts +188 -0
- package/types/apps/src/contracts/shared-catalog.d.ts +11 -0
- package/types/apps/src/implementation/schema.d.ts +10 -0
- package/types/utils/src/schema-definitions.d.ts +13 -0
package/js/effect.js
CHANGED
|
@@ -3,24 +3,24 @@ 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-RN4YB4JT.js";
|
|
7
|
+
import "./chunk-5C6RAGAS.js";
|
|
8
|
+
import "./chunk-QI66R4FP.js";
|
|
9
|
+
import "./chunk-VCYWAA4N.js";
|
|
10
10
|
import "./chunk-PBGPES67.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-ILYCJ3HV.js";
|
|
12
|
+
import "./chunk-2CURR5Y7.js";
|
|
13
|
+
import "./chunk-7STIP5CS.js";
|
|
14
14
|
import {
|
|
15
15
|
ToolAnnotations
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4UPC36ZL.js";
|
|
17
17
|
import "./chunk-4PIQKACY.js";
|
|
18
18
|
import {
|
|
19
19
|
compileJsonSchemaDecoder,
|
|
20
20
|
decoderOf,
|
|
21
21
|
jsonSchemaDecoder,
|
|
22
22
|
wrap
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VAI3EVCS.js";
|
|
24
24
|
import "./chunk-URKOTNDA.js";
|
|
25
25
|
import "./chunk-YDW7DX3A.js";
|
|
26
26
|
import "./chunk-OWN3DP2W.js";
|
package/js/graphql.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catalogCache,
|
|
3
3
|
catalogScope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YWVISRZD.js";
|
|
5
5
|
import {
|
|
6
6
|
protocolOperations
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2LSGC7XY.js";
|
|
8
8
|
import "./chunk-BCSNKUAC.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-RN4YB4JT.js";
|
|
10
10
|
import {
|
|
11
11
|
cacheKey
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-5C6RAGAS.js";
|
|
13
|
+
import "./chunk-QI66R4FP.js";
|
|
14
14
|
import {
|
|
15
15
|
failOnNetworkRefusal
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VCYWAA4N.js";
|
|
17
17
|
import "./chunk-PBGPES67.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-ILYCJ3HV.js";
|
|
19
19
|
import {
|
|
20
20
|
nativeOperation,
|
|
21
21
|
routerDeclaration
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2CURR5Y7.js";
|
|
23
23
|
import {
|
|
24
24
|
accountProviderError,
|
|
25
25
|
graphqlProviderError,
|
|
26
26
|
httpProviderError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-7STIP5CS.js";
|
|
28
28
|
import {
|
|
29
29
|
NetworkRefused,
|
|
30
30
|
ProviderError
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-4UPC36ZL.js";
|
|
32
32
|
import "./chunk-4PIQKACY.js";
|
|
33
33
|
import {
|
|
34
34
|
jsonSchemaDecoder
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-VAI3EVCS.js";
|
|
36
36
|
import {
|
|
37
37
|
owned
|
|
38
38
|
} from "./chunk-URKOTNDA.js";
|
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-RN4YB4JT.js";
|
|
4
|
+
import "./chunk-5C6RAGAS.js";
|
|
5
|
+
import "./chunk-QI66R4FP.js";
|
|
6
|
+
import "./chunk-VCYWAA4N.js";
|
|
7
7
|
import "./chunk-PBGPES67.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-ILYCJ3HV.js";
|
|
9
|
+
import "./chunk-2CURR5Y7.js";
|
|
10
|
+
import "./chunk-7STIP5CS.js";
|
|
11
11
|
import {
|
|
12
12
|
CacheCommand,
|
|
13
13
|
CacheError,
|
|
@@ -25,9 +25,9 @@ import {
|
|
|
25
25
|
WorkflowRun,
|
|
26
26
|
WorkflowRunId,
|
|
27
27
|
WorkflowRunPage
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-4UPC36ZL.js";
|
|
29
29
|
import "./chunk-4PIQKACY.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-VAI3EVCS.js";
|
|
31
31
|
import {
|
|
32
32
|
collectTelemetry,
|
|
33
33
|
withRemoteSpan
|
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-ILYCJ3HV.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-2CURR5Y7.js";
|
|
29
29
|
import {
|
|
30
30
|
accountProviderError,
|
|
31
31
|
fromPromise
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-7STIP5CS.js";
|
|
33
33
|
import {
|
|
34
34
|
CacheError,
|
|
35
35
|
CalendarSchedule,
|
|
@@ -48,11 +48,12 @@ import {
|
|
|
48
48
|
ScheduleTiming,
|
|
49
49
|
SecretsMethod,
|
|
50
50
|
WorkflowFailure
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-4UPC36ZL.js";
|
|
52
52
|
import "./chunk-4PIQKACY.js";
|
|
53
53
|
import {
|
|
54
54
|
array,
|
|
55
55
|
boolean,
|
|
56
|
+
combineJsonSchemas,
|
|
56
57
|
decoderOf,
|
|
57
58
|
fieldExposure,
|
|
58
59
|
importedJsonSchema,
|
|
@@ -60,7 +61,6 @@ import {
|
|
|
60
61
|
json,
|
|
61
62
|
jsonSchema,
|
|
62
63
|
literal,
|
|
63
|
-
nestJsonSchema,
|
|
64
64
|
number,
|
|
65
65
|
object,
|
|
66
66
|
once,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
string,
|
|
73
73
|
withLazyJsonSchemaDocument,
|
|
74
74
|
wrap
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-VAI3EVCS.js";
|
|
76
76
|
import "./chunk-URKOTNDA.js";
|
|
77
77
|
import "./chunk-YDW7DX3A.js";
|
|
78
78
|
import "./chunk-OWN3DP2W.js";
|
|
@@ -147,23 +147,34 @@ var accountBranches = (variants) => {
|
|
|
147
147
|
if (group === void 0) groups.set(key, { schema, first: accountId, rest: [] });
|
|
148
148
|
else group.rest.push(accountId);
|
|
149
149
|
}
|
|
150
|
+
const branches = [...groups.values()];
|
|
151
|
+
const { $defs, schemas } = combineJsonSchemas(
|
|
152
|
+
branches.map(({ schema }) => schema),
|
|
153
|
+
(index) => `#/anyOf/${index}/properties/input`
|
|
154
|
+
);
|
|
150
155
|
return {
|
|
151
156
|
type: "object",
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
157
|
+
...$defs === void 0 ? {} : { $defs },
|
|
158
|
+
anyOf: schemas.map((input, index) => {
|
|
159
|
+
const { first, rest } = branches[index];
|
|
160
|
+
return {
|
|
161
|
+
type: "object",
|
|
162
|
+
properties: {
|
|
163
|
+
accountId: rest.length === 0 ? { type: "string", const: first } : { type: "string", enum: [first, ...rest] },
|
|
164
|
+
input
|
|
165
|
+
},
|
|
166
|
+
required: ["accountId", "input"]
|
|
167
|
+
};
|
|
168
|
+
})
|
|
160
169
|
};
|
|
161
170
|
};
|
|
162
|
-
var outputBranches = (outputs) =>
|
|
163
|
-
|
|
164
|
-
(output
|
|
165
|
-
|
|
166
|
-
|
|
171
|
+
var outputBranches = (outputs) => {
|
|
172
|
+
const { $defs, schemas } = combineJsonSchemas(
|
|
173
|
+
[...new Map(outputs.map((output) => [JSON.stringify(output), output])).values()],
|
|
174
|
+
(index) => `#/anyOf/${index}`
|
|
175
|
+
);
|
|
176
|
+
return { ...$defs === void 0 ? {} : { $defs }, anyOf: schemas };
|
|
177
|
+
};
|
|
167
178
|
var declaresOutput = (operation) => {
|
|
168
179
|
if (operation.output !== void 0) return true;
|
|
169
180
|
const property = Object.getOwnPropertyDescriptor(operation, "outputSchema");
|
package/js/mcp/effect.js
CHANGED
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
mcpClientEffect,
|
|
3
3
|
mcpHealthEffect,
|
|
4
4
|
mcpToolsEffect
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-K6TSCYAO.js";
|
|
6
6
|
import "../chunk-BCSNKUAC.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-RN4YB4JT.js";
|
|
8
|
+
import "../chunk-5C6RAGAS.js";
|
|
9
|
+
import "../chunk-QI66R4FP.js";
|
|
10
|
+
import "../chunk-VCYWAA4N.js";
|
|
11
11
|
import "../chunk-PBGPES67.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-ILYCJ3HV.js";
|
|
13
|
+
import "../chunk-2CURR5Y7.js";
|
|
14
|
+
import "../chunk-7STIP5CS.js";
|
|
15
|
+
import "../chunk-4UPC36ZL.js";
|
|
16
16
|
import "../chunk-4PIQKACY.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-VAI3EVCS.js";
|
|
18
18
|
import "../chunk-URKOTNDA.js";
|
|
19
19
|
import "../chunk-YDW7DX3A.js";
|
|
20
20
|
import "../chunk-OWN3DP2W.js";
|
package/js/mcp.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catalogCache,
|
|
3
3
|
catalogScope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YWVISRZD.js";
|
|
5
5
|
import {
|
|
6
6
|
protocolOperations
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2LSGC7XY.js";
|
|
8
8
|
import {
|
|
9
9
|
adaptMcpTool,
|
|
10
10
|
mcpClientEffect,
|
|
11
11
|
mcpHealthEffect
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-K6TSCYAO.js";
|
|
13
13
|
import "./chunk-BCSNKUAC.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-RN4YB4JT.js";
|
|
15
15
|
import {
|
|
16
16
|
cacheKey
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5C6RAGAS.js";
|
|
18
18
|
import {
|
|
19
19
|
operationDescription
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-QI66R4FP.js";
|
|
21
|
+
import "./chunk-VCYWAA4N.js";
|
|
22
22
|
import "./chunk-PBGPES67.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-ILYCJ3HV.js";
|
|
24
24
|
import {
|
|
25
25
|
nativeOperation,
|
|
26
26
|
routerDeclaration
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-2CURR5Y7.js";
|
|
28
28
|
import {
|
|
29
29
|
fromPromise,
|
|
30
30
|
method
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-7STIP5CS.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-4UPC36ZL.js";
|
|
39
39
|
import "./chunk-4PIQKACY.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-VAI3EVCS.js";
|
|
41
41
|
import "./chunk-URKOTNDA.js";
|
|
42
42
|
import "./chunk-YDW7DX3A.js";
|
|
43
43
|
import "./chunk-OWN3DP2W.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-2LSGC7XY.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-QI66R4FP.js";
|
|
33
33
|
import {
|
|
34
34
|
failOnNetworkRefusal
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-VCYWAA4N.js";
|
|
36
36
|
import "./chunk-PBGPES67.js";
|
|
37
37
|
import {
|
|
38
38
|
nativeOperation,
|
|
39
39
|
routerDeclaration
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-2CURR5Y7.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-7STIP5CS.js";
|
|
50
50
|
import {
|
|
51
51
|
ApiErrorRecovery,
|
|
52
52
|
ApiErrorResponse,
|
|
@@ -57,14 +57,14 @@ import {
|
|
|
57
57
|
RouterMeta,
|
|
58
58
|
cacheLimits,
|
|
59
59
|
defaultOpenapiErrorLimits
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-4UPC36ZL.js";
|
|
61
61
|
import "./chunk-4PIQKACY.js";
|
|
62
62
|
import {
|
|
63
63
|
jsonSchema,
|
|
64
64
|
lazyJsonSchemaDecoder,
|
|
65
65
|
once,
|
|
66
66
|
wrap
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-VAI3EVCS.js";
|
|
68
68
|
import {
|
|
69
69
|
owned
|
|
70
70
|
} from "./chunk-URKOTNDA.js";
|
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-YWVISRZD.js";
|
|
5
|
+
import "./chunk-5C6RAGAS.js";
|
|
6
6
|
import {
|
|
7
7
|
failOnNetworkRefusal
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VCYWAA4N.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-7STIP5CS.js";
|
|
20
20
|
import {
|
|
21
21
|
NetworkRefused,
|
|
22
22
|
ProviderError,
|
|
23
23
|
networkRefusalStatus
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-4UPC36ZL.js";
|
|
25
25
|
import {
|
|
26
26
|
AppSkillMetadata,
|
|
27
27
|
AppSkillSource,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
} from "./chunk-4PIQKACY.js";
|
|
35
35
|
import {
|
|
36
36
|
wrap
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-VAI3EVCS.js";
|
|
38
38
|
import "./chunk-URKOTNDA.js";
|
|
39
39
|
import {
|
|
40
40
|
FetchHttpClient_exports
|