apps 0.0.1-beta.15 → 0.0.1-beta.17
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-RFVIONFX.js → chunk-4EMWIFFJ.js} +1 -1
- package/js/{chunk-5T57N25Q.js → chunk-4QQ62BVS.js} +22 -0
- package/js/{chunk-YHLXXXKH.js → chunk-7H44SOSX.js} +4 -4
- package/js/{chunk-H34RQANV.js → chunk-F2IASQK2.js} +3 -3
- package/js/{chunk-4J3IQXFD.js → chunk-HQY4UTYX.js} +2 -2
- package/js/{chunk-GKHJITGG.js → chunk-MAF4BRQF.js} +2 -2
- package/js/{chunk-SWXGYMUW.js → chunk-NMKHTJOQ.js} +52 -7
- package/js/{chunk-CL3O2NIN.js → chunk-VXWY44LE.js} +91 -7
- package/js/{chunk-O5G3NDEO.js → chunk-XNCYIB4D.js} +3 -3
- package/js/{chunk-JAKBOQ5T.js → chunk-ZKISLYWM.js} +22 -9
- package/js/client.js +1 -1
- package/js/contracts.js +5 -1
- package/js/effect.js +6 -6
- package/js/graphql.js +8 -8
- package/js/host.js +6 -6
- package/js/index.js +37 -8
- package/js/mcp/effect.js +8 -8
- package/js/mcp/stdio.js +8 -8
- package/js/mcp.js +10 -10
- package/js/openapi.js +5 -5
- package/js/skills.js +2 -2
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/apps/src/contracts/host.d.ts +5 -4
- package/types/apps/src/contracts/protocol-version.d.ts +2 -2
- package/types/apps/src/contracts/protocols/7.d.ts +1784 -0
- package/types/apps/src/contracts/provider.d.ts +15 -0
- package/types/apps/src/implementation/elicitation.d.ts +1 -1
- package/types/apps/src/implementation/openapi-compile.d.ts +2 -2
- package/types/apps/src/implementation/operations.d.ts +10 -0
- package/types/apps/src/implementation/provider.d.ts +11 -2
- package/types/apps/src/implementation/router.d.ts +9 -0
- package/types/apps/src/implementation/schema.d.ts +39 -0
- package/types/apps/src/index.d.ts +8 -6
package/js/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
defineDatabase,
|
|
6
6
|
table,
|
|
7
7
|
workflow
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XNCYIB4D.js";
|
|
9
9
|
import "./chunk-ZQINWV4W.js";
|
|
10
10
|
import {
|
|
11
11
|
dynamicRouter,
|
|
@@ -17,8 +17,10 @@ import {
|
|
|
17
17
|
query,
|
|
18
18
|
router,
|
|
19
19
|
routerDeclaration,
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
toolAnnotations,
|
|
21
|
+
withApproval,
|
|
22
|
+
withApprovals
|
|
23
|
+
} from "./chunk-NMKHTJOQ.js";
|
|
22
24
|
import {
|
|
23
25
|
accountProviderError
|
|
24
26
|
} from "./chunk-MKWZPDR6.js";
|
|
@@ -36,7 +38,7 @@ import {
|
|
|
36
38
|
ScheduleTiming,
|
|
37
39
|
SecretsMethod,
|
|
38
40
|
WorkflowFailure
|
|
39
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-VXWY44LE.js";
|
|
40
42
|
import "./chunk-N7YDVXYJ.js";
|
|
41
43
|
import {
|
|
42
44
|
CacheError,
|
|
@@ -47,8 +49,10 @@ import {
|
|
|
47
49
|
array,
|
|
48
50
|
boolean,
|
|
49
51
|
decoderOf,
|
|
52
|
+
fieldExposure,
|
|
50
53
|
id,
|
|
51
54
|
importedJsonSchema,
|
|
55
|
+
isSchema,
|
|
52
56
|
json,
|
|
53
57
|
jsonSchema,
|
|
54
58
|
literal,
|
|
@@ -57,12 +61,14 @@ import {
|
|
|
57
61
|
object,
|
|
58
62
|
once,
|
|
59
63
|
parse,
|
|
64
|
+
plain,
|
|
65
|
+
raw,
|
|
60
66
|
record,
|
|
61
67
|
string,
|
|
62
68
|
userId,
|
|
63
69
|
withLazyJsonSchemaDocument,
|
|
64
70
|
wrap
|
|
65
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-4QQ62BVS.js";
|
|
66
72
|
import "./chunk-PZB6T6KU.js";
|
|
67
73
|
import {
|
|
68
74
|
JsonObject,
|
|
@@ -86,7 +92,11 @@ var decodeJson = (response, schema) => Effect_exports.gen(function* () {
|
|
|
86
92
|
|
|
87
93
|
// src/implementation/provider.ts
|
|
88
94
|
var secrets = (options) => new SecretsMethod(options);
|
|
89
|
-
var oauth2 = (config, response) => parse(OAuth2Config, config).pipe(
|
|
95
|
+
var oauth2 = (config, response, exposure) => parse(OAuth2Config, config).pipe(
|
|
96
|
+
Effect_exports.map(
|
|
97
|
+
(config2) => new OAuth2Method({ config: config2, response, ...exposure === void 0 ? {} : { exposure } })
|
|
98
|
+
)
|
|
99
|
+
);
|
|
90
100
|
var defineProvider = ({
|
|
91
101
|
health,
|
|
92
102
|
...options
|
|
@@ -366,11 +376,26 @@ var cron = (calendar, operation, input) => declaration(
|
|
|
366
376
|
);
|
|
367
377
|
|
|
368
378
|
// src/index.ts
|
|
379
|
+
var isFields = (value) => typeof value === "object" && value !== null && Object.values(value).every(isSchema);
|
|
380
|
+
var accountDecoder = (schema) => (
|
|
381
|
+
// SAFETY: the brand exists only in types; secret values are strings at runtime.
|
|
382
|
+
decoderOf(schema)
|
|
383
|
+
);
|
|
384
|
+
var exposureOf = (schema) => {
|
|
385
|
+
const marked = "fields" in schema && isFields(schema.fields) ? fieldExposure(schema.fields) : {};
|
|
386
|
+
return Object.keys(marked).length === 0 ? {} : { exposure: marked };
|
|
387
|
+
};
|
|
369
388
|
var OAuth2AccessToken2 = wrap(OAuth2AccessToken, false);
|
|
370
|
-
var secrets2 = (options) => secrets({
|
|
389
|
+
var secrets2 = (options) => secrets({
|
|
390
|
+
label: options.label,
|
|
391
|
+
fields: accountDecoder(options.fields),
|
|
392
|
+
...exposureOf(options.fields)
|
|
393
|
+
});
|
|
371
394
|
function oauth22(options) {
|
|
372
395
|
const { response = OAuth2AccessToken2, ...config } = options;
|
|
373
|
-
return Effect_exports.runSync(
|
|
396
|
+
return Effect_exports.runSync(
|
|
397
|
+
oauth2(config, accountDecoder(response), exposureOf(response).exposure)
|
|
398
|
+
);
|
|
374
399
|
}
|
|
375
400
|
var decodeJson2 = (response, schema) => {
|
|
376
401
|
const native = {
|
|
@@ -416,13 +441,17 @@ export {
|
|
|
416
441
|
number,
|
|
417
442
|
oauth22 as oauth2,
|
|
418
443
|
object,
|
|
444
|
+
plain,
|
|
419
445
|
query,
|
|
446
|
+
raw,
|
|
420
447
|
record,
|
|
421
448
|
router,
|
|
422
449
|
secrets2 as secrets,
|
|
423
450
|
string,
|
|
424
451
|
table,
|
|
452
|
+
toolAnnotations,
|
|
425
453
|
userId,
|
|
426
454
|
withApproval,
|
|
455
|
+
withApprovals,
|
|
427
456
|
workflow
|
|
428
457
|
};
|
package/js/mcp/effect.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mcpClientEffect,
|
|
3
3
|
mcpToolsEffect
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-MAF4BRQF.js";
|
|
5
|
+
import "../chunk-7H44SOSX.js";
|
|
6
6
|
import "../chunk-BCSNKUAC.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-ZKISLYWM.js";
|
|
8
8
|
import "../chunk-NKLWZJLE.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-F2IASQK2.js";
|
|
10
10
|
import "../chunk-IPI4MFSN.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-XNCYIB4D.js";
|
|
12
12
|
import "../chunk-ZQINWV4W.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-NMKHTJOQ.js";
|
|
14
14
|
import "../chunk-MKWZPDR6.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-VXWY44LE.js";
|
|
16
16
|
import "../chunk-N7YDVXYJ.js";
|
|
17
17
|
import "../chunk-R3EV5FTO.js";
|
|
18
18
|
import "../chunk-JU7VHODU.js";
|
|
19
19
|
import "../chunk-ODEIDRGW.js";
|
|
20
20
|
import "../chunk-57RKNWL2.js";
|
|
21
21
|
import "../chunk-UK573G7W.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-4QQ62BVS.js";
|
|
23
23
|
import "../chunk-PZB6T6KU.js";
|
|
24
24
|
import "../chunk-27F7W2LG.js";
|
|
25
25
|
import "../chunk-CDL5PM2Q.js";
|
package/js/mcp/stdio.js
CHANGED
|
@@ -2,30 +2,30 @@ import {
|
|
|
2
2
|
adaptMcpTools,
|
|
3
3
|
mcpClient,
|
|
4
4
|
mcpJsonSchemaValidator
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-7H44SOSX.js";
|
|
6
6
|
import {
|
|
7
7
|
protocolRouter
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-HQY4UTYX.js";
|
|
9
9
|
import "../chunk-BCSNKUAC.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-ZKISLYWM.js";
|
|
11
11
|
import "../chunk-NKLWZJLE.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-F2IASQK2.js";
|
|
13
13
|
import "../chunk-IPI4MFSN.js";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-XNCYIB4D.js";
|
|
15
15
|
import "../chunk-ZQINWV4W.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-NMKHTJOQ.js";
|
|
17
17
|
import "../chunk-MKWZPDR6.js";
|
|
18
18
|
import {
|
|
19
19
|
McpError,
|
|
20
20
|
ProcessConfig
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-VXWY44LE.js";
|
|
22
22
|
import "../chunk-N7YDVXYJ.js";
|
|
23
23
|
import "../chunk-R3EV5FTO.js";
|
|
24
24
|
import "../chunk-JU7VHODU.js";
|
|
25
25
|
import "../chunk-ODEIDRGW.js";
|
|
26
26
|
import "../chunk-57RKNWL2.js";
|
|
27
27
|
import "../chunk-UK573G7W.js";
|
|
28
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-4QQ62BVS.js";
|
|
29
29
|
import "../chunk-PZB6T6KU.js";
|
|
30
30
|
import "../chunk-27F7W2LG.js";
|
|
31
31
|
import {
|
package/js/mcp.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mcpClientEffect
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MAF4BRQF.js";
|
|
4
4
|
import {
|
|
5
5
|
catalogCache
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4EMWIFFJ.js";
|
|
7
7
|
import {
|
|
8
8
|
adaptMcpTool
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7H44SOSX.js";
|
|
10
10
|
import {
|
|
11
11
|
protocolOperations
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HQY4UTYX.js";
|
|
13
13
|
import "./chunk-BCSNKUAC.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-ZKISLYWM.js";
|
|
15
15
|
import {
|
|
16
16
|
cacheKey
|
|
17
17
|
} from "./chunk-NKLWZJLE.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-F2IASQK2.js";
|
|
19
19
|
import "./chunk-IPI4MFSN.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-XNCYIB4D.js";
|
|
21
21
|
import "./chunk-ZQINWV4W.js";
|
|
22
22
|
import {
|
|
23
23
|
nativeOperation,
|
|
24
24
|
routerDeclaration
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-NMKHTJOQ.js";
|
|
26
26
|
import "./chunk-MKWZPDR6.js";
|
|
27
27
|
import {
|
|
28
28
|
McpError,
|
|
29
29
|
McpServerHeader,
|
|
30
30
|
McpToolMetadata,
|
|
31
31
|
McpToolsOptions
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-VXWY44LE.js";
|
|
33
33
|
import "./chunk-N7YDVXYJ.js";
|
|
34
34
|
import "./chunk-R3EV5FTO.js";
|
|
35
35
|
import "./chunk-JU7VHODU.js";
|
|
36
36
|
import "./chunk-ODEIDRGW.js";
|
|
37
37
|
import "./chunk-57RKNWL2.js";
|
|
38
38
|
import "./chunk-UK573G7W.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-4QQ62BVS.js";
|
|
40
40
|
import "./chunk-PZB6T6KU.js";
|
|
41
41
|
import "./chunk-27F7W2LG.js";
|
|
42
42
|
import {
|
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-HQY4UTYX.js";
|
|
12
12
|
import {
|
|
13
13
|
OpenapiError,
|
|
14
14
|
OpenapiErrorResponse,
|
|
@@ -21,14 +21,14 @@ import {
|
|
|
21
21
|
isOpenapiTextMedia,
|
|
22
22
|
openapiBinaryResultSchema,
|
|
23
23
|
openapiMediaKind
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-F2IASQK2.js";
|
|
25
25
|
import "./chunk-IPI4MFSN.js";
|
|
26
26
|
import {
|
|
27
27
|
fromPromise,
|
|
28
28
|
nativeOperation,
|
|
29
29
|
routerDeclaration,
|
|
30
30
|
toPromise
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-NMKHTJOQ.js";
|
|
32
32
|
import {
|
|
33
33
|
accountProviderError,
|
|
34
34
|
httpProviderError
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
OpenapiResponseError,
|
|
40
40
|
RouterMeta,
|
|
41
41
|
defaultOpenapiErrorLimits
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-VXWY44LE.js";
|
|
43
43
|
import "./chunk-N7YDVXYJ.js";
|
|
44
44
|
import {
|
|
45
45
|
ProviderError,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
lazyJsonSchemaDecoder,
|
|
59
59
|
once,
|
|
60
60
|
wrap
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-4QQ62BVS.js";
|
|
62
62
|
import "./chunk-PZB6T6KU.js";
|
|
63
63
|
import {
|
|
64
64
|
JsonObject
|
package/js/skills.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catalogCache
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4EMWIFFJ.js";
|
|
4
4
|
import "./chunk-NKLWZJLE.js";
|
|
5
5
|
import {
|
|
6
6
|
folderSkillsEffect,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-UK573G7W.js";
|
|
30
30
|
import {
|
|
31
31
|
wrap
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-4QQ62BVS.js";
|
|
33
33
|
import "./chunk-27F7W2LG.js";
|
|
34
34
|
import {
|
|
35
35
|
Effect_exports,
|