apps 0.0.1-beta.1 → 0.0.1-beta.11
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/README.md +65 -43
- package/framework-reference.json +1 -1
- package/js/browser-XIPJGLH2.js +65 -0
- package/js/{chunk-SATWJKN6.js → chunk-27F7W2LG.js} +1 -1
- package/js/{chunk-HDJH3RPR.js → chunk-57RKNWL2.js} +2 -2
- package/js/{chunk-2HHMABB6.js → chunk-5T57N25Q.js} +61 -13
- package/js/{chunk-FW5HBOIK.js → chunk-CDL5PM2Q.js} +307 -169
- package/js/{chunk-X7SFGU4Q.js → chunk-EFAPIRVB.js} +28 -9
- package/js/chunk-GPFVWWDZ.js +209 -0
- package/js/{chunk-OHRT55C4.js → chunk-IJX4CYZO.js} +3 -6
- package/js/{chunk-ZTFQHGEB.js → chunk-IPI4MFSN.js} +3 -5
- package/js/{chunk-YEJOQEII.js → chunk-JU7VHODU.js} +1 -1
- package/js/{chunk-IHQ4ML7K.js → chunk-KRSCJDTW.js} +586 -111
- package/js/chunk-KUMBKVJD.js +39 -0
- package/js/{chunk-EVJUVWN2.js → chunk-M3B3DE4K.js} +2 -2
- package/js/{chunk-ZJWDMTE3.js → chunk-MKWZPDR6.js} +3 -3
- package/js/{chunk-BMOIAIVR.js → chunk-N7YDVXYJ.js} +49 -1
- package/js/chunk-NKLWZJLE.js +172 -0
- package/js/{chunk-ZCAMUXSG.js → chunk-ODEIDRGW.js} +3 -4
- package/js/{chunk-M6ZRRIBI.js → chunk-PJJ24GU7.js} +1 -1
- package/js/{chunk-FZJOYIZO.js → chunk-PZB6T6KU.js} +1 -1
- package/js/chunk-R3EV5FTO.js +97 -0
- package/js/{chunk-KOXMLKTM.js → chunk-RELFXUOO.js} +308 -316
- package/js/{chunk-6YBRWRK3.js → chunk-RFVIONFX.js} +43 -14
- package/js/{chunk-RBAC33PQ.js → chunk-TYVDBQSI.js} +58 -83
- package/js/{chunk-QKHR7BMF.js → chunk-UK573G7W.js} +1 -1
- package/js/{chunk-NCYXZN2G.js → chunk-UVL56Z6E.js} +390 -23
- package/js/{chunk-4LPG6RCH.js → chunk-VFZKSM3T.js} +5 -25
- package/js/{chunk-6IIO4NPI.js → chunk-WVVV4TX2.js} +21 -9
- package/js/{chunk-G7IE6BKC.js → chunk-YBRC463S.js} +8 -8
- package/js/chunk-Z2QY3YTF.js +507 -0
- package/js/{chunk-PLCMJREA.js → chunk-ZQINWV4W.js} +60 -20
- package/js/client.js +10 -26
- package/js/contracts.js +70 -15
- package/js/effect.js +19 -19
- package/js/es-APDZKREY.js +40968 -0
- package/js/graphql.js +34 -39
- package/js/host.js +23 -23
- package/js/index.js +199 -195
- package/js/mcp/effect.js +21 -21
- package/js/mcp/stdio.js +25 -25
- package/js/mcp.js +60 -44
- package/js/openapi.js +826 -41682
- package/js/react.js +3 -3
- package/js/skills/effect.js +3 -4
- package/js/skills.js +53 -17
- package/js/storage/facet.js +4 -4
- package/js/ui/auth/contracts.js +8 -9
- package/js/ui/auth.js +16 -14
- package/js/ui/contracts.js +4 -4
- package/js/ui/serving.js +9 -8
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/app-cache/src/contracts/cache.d.ts +42 -2
- package/types/app-cache/src/index.d.ts +59 -1
- package/types/app-data/src/contracts/database.d.ts +33 -6
- package/types/app-data/src/implementation/schema.d.ts +2 -17
- package/types/apps/src/contracts/app.d.ts +7 -6
- package/types/apps/src/contracts/cache.d.ts +4 -1
- package/types/apps/src/contracts/failure.d.ts +25 -0
- package/types/apps/src/contracts/host.d.ts +34 -679
- package/types/apps/src/contracts/mcp.d.ts +16 -0
- package/types/apps/src/contracts/openapi.d.ts +11 -1
- package/types/apps/src/contracts/operations.d.ts +0 -5
- package/types/apps/src/contracts/protocol-version.d.ts +6 -0
- package/types/apps/src/contracts/protocols/1.d.ts +1589 -0
- package/types/apps/src/contracts/protocols/2.d.ts +668 -0
- package/types/apps/src/contracts/protocols/3.d.ts +676 -0
- package/types/apps/src/contracts/protocols/4.d.ts +1229 -0
- package/types/apps/src/contracts/protocols/5.d.ts +1090 -0
- package/types/apps/src/contracts/provider.d.ts +56 -5
- package/types/apps/src/contracts/router.d.ts +59 -0
- package/types/apps/src/contracts/skills.d.ts +17 -8
- package/types/apps/src/contracts/storage.d.ts +3 -3
- package/types/apps/src/contracts/ui-auth.d.ts +6 -14
- package/types/apps/src/contracts/workflows.d.ts +34 -3
- package/types/apps/src/graphql.d.ts +1 -3
- package/types/apps/src/implementation/account-router.d.ts +12 -0
- package/types/apps/src/implementation/app.d.ts +5 -4
- package/types/apps/src/implementation/cache.d.ts +3 -1
- package/types/apps/src/implementation/catalog-cache.d.ts +9 -2
- package/types/apps/src/implementation/elicitation.d.ts +1 -1
- package/types/apps/src/implementation/failure-detail.d.ts +25 -0
- package/types/apps/src/implementation/graphql-catalog.d.ts +1 -4
- package/types/apps/src/implementation/mcp-catalog.d.ts +1 -4
- package/types/apps/src/implementation/mcp-client.d.ts +35 -19
- package/types/apps/src/implementation/mcp.d.ts +35 -19
- package/types/apps/src/implementation/openapi-compile.d.ts +3 -2
- package/types/apps/src/implementation/openapi-document.d.ts +0 -2
- package/types/apps/src/implementation/openapi-names.d.ts +18 -0
- package/types/apps/src/implementation/openapi-request.d.ts +0 -1
- package/types/apps/src/implementation/openapi-source.d.ts +7 -7
- package/types/apps/src/implementation/operations.d.ts +26 -3
- package/types/apps/src/implementation/protocol-operations.d.ts +3 -4
- package/types/apps/src/implementation/provider.d.ts +9 -4
- package/types/apps/src/implementation/router-catalog.d.ts +225 -0
- package/types/apps/src/implementation/router.d.ts +59 -0
- package/types/apps/src/implementation/schema.d.ts +5 -6
- package/types/apps/src/implementation/storage.d.ts +5 -3
- package/types/apps/src/implementation/swagger-client.d.ts +28 -0
- package/types/apps/src/implementation/ui-auth.d.ts +11 -5
- package/types/apps/src/implementation/ui-serving.d.ts +4 -2
- package/types/apps/src/implementation/webhooks.d.ts +1 -1
- package/types/apps/src/implementation/workflow-context.d.ts +11 -3
- package/types/apps/src/index.d.ts +21 -6
- package/types/apps/src/mcp-stdio.d.ts +2 -5
- package/types/apps/src/mcp.d.ts +5 -4
- package/types/apps/src/openapi.d.ts +6 -6
- package/types/apps/src/skills.d.ts +6 -3
- package/types/apps/src/ui-auth.d.ts +2 -2
- package/types/telemetry/src/browser-operations.d.ts +5 -2
- package/js/chunk-PZ36XMXW.js +0 -93
- package/js/chunk-SWPD52J7.js +0 -35
- package/js/chunk-TE4KO4HI.js +0 -47
- package/js/chunk-W7D7WVSY.js +0 -18
- package/types/apps/src/contracts/dynamic-tools.d.ts +0 -13
- package/types/apps/src/implementation/account-operations.d.ts +0 -151
- package/types/apps/src/implementation/dynamic-tools.d.ts +0 -8
package/js/graphql.js
CHANGED
|
@@ -1,54 +1,55 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catalogCache
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RFVIONFX.js";
|
|
4
4
|
import {
|
|
5
5
|
protocolOperations
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WVVV4TX2.js";
|
|
7
7
|
import "./chunk-BCSNKUAC.js";
|
|
8
|
+
import "./chunk-RELFXUOO.js";
|
|
8
9
|
import {
|
|
9
10
|
cacheKey
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-NKLWZJLE.js";
|
|
12
|
+
import "./chunk-Z2QY3YTF.js";
|
|
13
|
+
import "./chunk-IPI4MFSN.js";
|
|
14
|
+
import "./chunk-TYVDBQSI.js";
|
|
15
|
+
import "./chunk-ZQINWV4W.js";
|
|
15
16
|
import {
|
|
16
|
-
nativeOperation
|
|
17
|
-
|
|
17
|
+
nativeOperation,
|
|
18
|
+
routerDeclaration
|
|
19
|
+
} from "./chunk-GPFVWWDZ.js";
|
|
18
20
|
import {
|
|
19
21
|
accountProviderError,
|
|
20
22
|
graphqlProviderError,
|
|
21
23
|
httpProviderError
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-YEJOQEII.js";
|
|
26
|
-
import "./chunk-SWPD52J7.js";
|
|
24
|
+
} from "./chunk-MKWZPDR6.js";
|
|
25
|
+
import "./chunk-KRSCJDTW.js";
|
|
26
|
+
import "./chunk-N7YDVXYJ.js";
|
|
27
27
|
import {
|
|
28
28
|
ProviderError
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-R3EV5FTO.js";
|
|
30
|
+
import "./chunk-JU7VHODU.js";
|
|
31
|
+
import "./chunk-ODEIDRGW.js";
|
|
31
32
|
import {
|
|
32
33
|
FetchHttpClient_exports
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-57RKNWL2.js";
|
|
34
35
|
import {
|
|
35
36
|
HttpClientRequest_exports,
|
|
36
37
|
HttpClient_exports
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-UK573G7W.js";
|
|
38
39
|
import {
|
|
39
40
|
jsonSchemaDecoder
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
41
|
+
} from "./chunk-5T57N25Q.js";
|
|
42
|
+
import "./chunk-PZB6T6KU.js";
|
|
42
43
|
import {
|
|
43
44
|
AccountId,
|
|
44
45
|
HttpUrl,
|
|
45
46
|
JsonObject
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-27F7W2LG.js";
|
|
47
48
|
import {
|
|
48
49
|
Effect_exports,
|
|
49
50
|
Redacted_exports,
|
|
50
51
|
Schema_exports
|
|
51
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-CDL5PM2Q.js";
|
|
52
53
|
import "./chunk-CZ7CSFO4.js";
|
|
53
54
|
|
|
54
55
|
// src/contracts/graphql.ts
|
|
@@ -447,13 +448,13 @@ var graphqlCatalog = (options, kinds) => Effect_exports.gen(function* () {
|
|
|
447
448
|
},
|
|
448
449
|
load: (context) => (context === void 0 ? Effect_exports.succeed(client) : graphqlClientEffect({ ...parsed, signal: context.signal })).pipe(
|
|
449
450
|
Effect_exports.flatMap((source) => source.discover),
|
|
450
|
-
Effect_exports.flatMap(graphqlDefinitions)
|
|
451
|
+
Effect_exports.flatMap(graphqlDefinitions),
|
|
452
|
+
Effect_exports.map((tools) => ({ tools }))
|
|
451
453
|
)
|
|
452
454
|
});
|
|
453
455
|
const kindOf = (tool) => Object.hasOwn(kinds, tool.name) ? kinds[tool.name] ?? "mutation" : tool.kind;
|
|
454
|
-
const qualified = (tool) => `${kindOf(tool) === "query" ? "queries" : "mutations"}.${tool.name}`;
|
|
455
456
|
const summarize = (tool) => ({
|
|
456
|
-
name:
|
|
457
|
+
name: tool.name,
|
|
457
458
|
description: tool.description,
|
|
458
459
|
readOnly: kindOf(tool) === "query"
|
|
459
460
|
});
|
|
@@ -461,34 +462,28 @@ var graphqlCatalog = (options, kinds) => Effect_exports.gen(function* () {
|
|
|
461
462
|
...summarize(tool),
|
|
462
463
|
inputSchema: tool.inputSchema
|
|
463
464
|
});
|
|
464
|
-
const
|
|
465
|
-
|
|
466
|
-
const tool = yield* catalog.resolve(name.slice(name.indexOf(".") + 1));
|
|
467
|
-
return tool === void 0 || qualified(tool) !== name ? void 0 : tool;
|
|
468
|
-
});
|
|
469
|
-
const dynamicTools = {
|
|
465
|
+
const router = {
|
|
466
|
+
kind: "dynamic",
|
|
470
467
|
list: () => catalog.list().pipe(Effect_exports.map((tools) => tools.map(describe))),
|
|
471
468
|
summaries: () => catalog.summaries().pipe(Effect_exports.map((tools) => tools.map(summarize))),
|
|
472
|
-
describe: (name) =>
|
|
473
|
-
Effect_exports.map((tool) => tool === void 0 ? void 0 : describe(tool))
|
|
474
|
-
),
|
|
469
|
+
describe: (name) => catalog.resolve(name).pipe(Effect_exports.map((tool) => tool === void 0 ? void 0 : describe(tool))),
|
|
475
470
|
resolve: (name) => Effect_exports.gen(function* () {
|
|
476
|
-
const tool = yield*
|
|
471
|
+
const tool = yield* catalog.resolve(name);
|
|
477
472
|
if (tool === void 0) return void 0;
|
|
478
473
|
const adapted = yield* adaptGraphqlTool(client, tool);
|
|
479
474
|
const operations = protocolOperations({ selected: adapted }, { selected: kindOf(tool) });
|
|
480
|
-
return nativeOperation(operations.
|
|
475
|
+
return nativeOperation(operations.selected);
|
|
481
476
|
})
|
|
482
477
|
};
|
|
483
|
-
return
|
|
478
|
+
return routerDeclaration(router);
|
|
484
479
|
});
|
|
485
480
|
|
|
486
481
|
// src/graphql.ts
|
|
487
|
-
var
|
|
482
|
+
var graphqlRouter = (options, kinds = {}) => Effect_exports.runPromise(
|
|
488
483
|
graphqlCatalog(options, kinds),
|
|
489
484
|
options.signal === void 0 ? {} : { signal: options.signal }
|
|
490
485
|
);
|
|
491
486
|
export {
|
|
492
487
|
GraphqlError,
|
|
493
|
-
|
|
488
|
+
graphqlRouter
|
|
494
489
|
};
|
package/js/host.js
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAppHandler
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import "./chunk-PLCMJREA.js";
|
|
12
|
-
import "./chunk-PZ36XMXW.js";
|
|
13
|
-
import "./chunk-ZJWDMTE3.js";
|
|
3
|
+
} from "./chunk-RELFXUOO.js";
|
|
4
|
+
import "./chunk-NKLWZJLE.js";
|
|
5
|
+
import "./chunk-Z2QY3YTF.js";
|
|
6
|
+
import "./chunk-IPI4MFSN.js";
|
|
7
|
+
import "./chunk-TYVDBQSI.js";
|
|
8
|
+
import "./chunk-ZQINWV4W.js";
|
|
9
|
+
import "./chunk-GPFVWWDZ.js";
|
|
10
|
+
import "./chunk-MKWZPDR6.js";
|
|
14
11
|
import {
|
|
15
12
|
ElicitationFailed,
|
|
16
13
|
ElicitationReply,
|
|
@@ -24,27 +21,30 @@ import {
|
|
|
24
21
|
WorkflowRun,
|
|
25
22
|
WorkflowRunId,
|
|
26
23
|
WorkflowRunPage
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
} from "./chunk-KRSCJDTW.js";
|
|
25
|
+
import "./chunk-N7YDVXYJ.js";
|
|
26
|
+
import {
|
|
27
|
+
CacheCommand,
|
|
28
|
+
CacheError,
|
|
29
|
+
CacheReply
|
|
30
|
+
} from "./chunk-R3EV5FTO.js";
|
|
31
|
+
import "./chunk-JU7VHODU.js";
|
|
32
32
|
import {
|
|
33
33
|
collectTelemetry,
|
|
34
34
|
withRemoteSpan
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-ODEIDRGW.js";
|
|
36
|
+
import "./chunk-57RKNWL2.js";
|
|
37
|
+
import "./chunk-UK573G7W.js";
|
|
38
|
+
import "./chunk-5T57N25Q.js";
|
|
39
|
+
import "./chunk-PZB6T6KU.js";
|
|
40
|
+
import "./chunk-27F7W2LG.js";
|
|
41
41
|
import {
|
|
42
42
|
Cause_exports,
|
|
43
43
|
Effect_exports,
|
|
44
44
|
Redacted_exports,
|
|
45
45
|
Scheduler_exports,
|
|
46
46
|
Schema_exports
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-CDL5PM2Q.js";
|
|
48
48
|
import "./chunk-CZ7CSFO4.js";
|
|
49
49
|
|
|
50
50
|
// src/implementation/cache-session.ts
|