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
|
@@ -1,3 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./chunk-CZ7CSFO4.js";
|
|
4
|
+
|
|
5
|
+
// ../../node_modules/.bun/yaml@2.9.1/node_modules/yaml/browser/dist/index.js
|
|
6
|
+
var dist_exports = {};
|
|
7
|
+
__export(dist_exports, {
|
|
8
|
+
Alias: () => Alias,
|
|
9
|
+
CST: () => cst_exports,
|
|
10
|
+
Composer: () => Composer,
|
|
11
|
+
Document: () => Document,
|
|
12
|
+
Lexer: () => Lexer,
|
|
13
|
+
LineCounter: () => LineCounter,
|
|
14
|
+
Pair: () => Pair,
|
|
15
|
+
Parser: () => Parser,
|
|
16
|
+
Scalar: () => Scalar,
|
|
17
|
+
Schema: () => Schema,
|
|
18
|
+
YAMLError: () => YAMLError,
|
|
19
|
+
YAMLMap: () => YAMLMap,
|
|
20
|
+
YAMLParseError: () => YAMLParseError,
|
|
21
|
+
YAMLSeq: () => YAMLSeq,
|
|
22
|
+
YAMLWarning: () => YAMLWarning,
|
|
23
|
+
isAlias: () => isAlias,
|
|
24
|
+
isCollection: () => isCollection,
|
|
25
|
+
isDocument: () => isDocument,
|
|
26
|
+
isMap: () => isMap,
|
|
27
|
+
isNode: () => isNode,
|
|
28
|
+
isPair: () => isPair,
|
|
29
|
+
isScalar: () => isScalar,
|
|
30
|
+
isSeq: () => isSeq,
|
|
31
|
+
parse: () => parse,
|
|
32
|
+
parseAllDocuments: () => parseAllDocuments,
|
|
33
|
+
parseDocument: () => parseDocument,
|
|
34
|
+
stringify: () => stringify3,
|
|
35
|
+
visit: () => visit,
|
|
36
|
+
visitAsync: () => visitAsync
|
|
37
|
+
});
|
|
38
|
+
|
|
1
39
|
// ../../node_modules/.bun/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/identity.js
|
|
2
40
|
var ALIAS = /* @__PURE__ */ Symbol.for("yaml.alias");
|
|
3
41
|
var DOC = /* @__PURE__ */ Symbol.for("yaml.document");
|
|
@@ -4632,30 +4670,251 @@ ${end.comment}` : end.comment;
|
|
|
4632
4670
|
}
|
|
4633
4671
|
};
|
|
4634
4672
|
|
|
4635
|
-
// ../../node_modules/.bun/yaml@2.9.1/node_modules/yaml/browser/dist/parse/
|
|
4636
|
-
var
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4673
|
+
// ../../node_modules/.bun/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst.js
|
|
4674
|
+
var cst_exports = {};
|
|
4675
|
+
__export(cst_exports, {
|
|
4676
|
+
BOM: () => BOM,
|
|
4677
|
+
DOCUMENT: () => DOCUMENT,
|
|
4678
|
+
FLOW_END: () => FLOW_END,
|
|
4679
|
+
SCALAR: () => SCALAR2,
|
|
4680
|
+
createScalarToken: () => createScalarToken,
|
|
4681
|
+
isCollection: () => isCollection2,
|
|
4682
|
+
isScalar: () => isScalar2,
|
|
4683
|
+
prettyToken: () => prettyToken,
|
|
4684
|
+
resolveAsScalar: () => resolveAsScalar,
|
|
4685
|
+
setScalarValue: () => setScalarValue,
|
|
4686
|
+
stringify: () => stringify2,
|
|
4687
|
+
tokenType: () => tokenType,
|
|
4688
|
+
visit: () => visit2
|
|
4689
|
+
});
|
|
4690
|
+
|
|
4691
|
+
// ../../node_modules/.bun/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst-scalar.js
|
|
4692
|
+
function resolveAsScalar(token, strict = true, onError) {
|
|
4693
|
+
if (token) {
|
|
4694
|
+
const _onError = (pos, code, message) => {
|
|
4695
|
+
const offset = typeof pos === "number" ? pos : Array.isArray(pos) ? pos[0] : pos.offset;
|
|
4696
|
+
if (onError)
|
|
4697
|
+
onError(offset, code, message);
|
|
4698
|
+
else
|
|
4699
|
+
throw new YAMLParseError([offset, offset + 1], code, message);
|
|
4656
4700
|
};
|
|
4701
|
+
switch (token.type) {
|
|
4702
|
+
case "scalar":
|
|
4703
|
+
case "single-quoted-scalar":
|
|
4704
|
+
case "double-quoted-scalar":
|
|
4705
|
+
return resolveFlowScalar(token, strict, _onError);
|
|
4706
|
+
case "block-scalar":
|
|
4707
|
+
return resolveBlockScalar({ options: { strict } }, token, _onError);
|
|
4708
|
+
}
|
|
4657
4709
|
}
|
|
4658
|
-
|
|
4710
|
+
return null;
|
|
4711
|
+
}
|
|
4712
|
+
function createScalarToken(value, context) {
|
|
4713
|
+
const { implicitKey = false, indent, inFlow = false, offset = -1, type = "PLAIN" } = context;
|
|
4714
|
+
const source = stringifyString({ type, value }, {
|
|
4715
|
+
implicitKey,
|
|
4716
|
+
indent: indent > 0 ? " ".repeat(indent) : "",
|
|
4717
|
+
inFlow,
|
|
4718
|
+
options: { blockQuote: true, lineWidth: -1 }
|
|
4719
|
+
});
|
|
4720
|
+
const end = context.end ?? [
|
|
4721
|
+
{ type: "newline", offset: -1, indent, source: "\n" }
|
|
4722
|
+
];
|
|
4723
|
+
switch (source[0]) {
|
|
4724
|
+
case "|":
|
|
4725
|
+
case ">": {
|
|
4726
|
+
const he = source.indexOf("\n");
|
|
4727
|
+
const head = source.substring(0, he);
|
|
4728
|
+
const body = source.substring(he + 1) + "\n";
|
|
4729
|
+
const props = [
|
|
4730
|
+
{ type: "block-scalar-header", offset, indent, source: head }
|
|
4731
|
+
];
|
|
4732
|
+
if (!addEndtoBlockProps(props, end))
|
|
4733
|
+
props.push({ type: "newline", offset: -1, indent, source: "\n" });
|
|
4734
|
+
return { type: "block-scalar", offset, indent, props, source: body };
|
|
4735
|
+
}
|
|
4736
|
+
case '"':
|
|
4737
|
+
return { type: "double-quoted-scalar", offset, indent, source, end };
|
|
4738
|
+
case "'":
|
|
4739
|
+
return { type: "single-quoted-scalar", offset, indent, source, end };
|
|
4740
|
+
default:
|
|
4741
|
+
return { type: "scalar", offset, indent, source, end };
|
|
4742
|
+
}
|
|
4743
|
+
}
|
|
4744
|
+
function setScalarValue(token, value, context = {}) {
|
|
4745
|
+
let { afterKey = false, implicitKey = false, inFlow = false, type } = context;
|
|
4746
|
+
let indent = "indent" in token ? token.indent : null;
|
|
4747
|
+
if (afterKey && typeof indent === "number")
|
|
4748
|
+
indent += 2;
|
|
4749
|
+
if (!type)
|
|
4750
|
+
switch (token.type) {
|
|
4751
|
+
case "single-quoted-scalar":
|
|
4752
|
+
type = "QUOTE_SINGLE";
|
|
4753
|
+
break;
|
|
4754
|
+
case "double-quoted-scalar":
|
|
4755
|
+
type = "QUOTE_DOUBLE";
|
|
4756
|
+
break;
|
|
4757
|
+
case "block-scalar": {
|
|
4758
|
+
const header = token.props[0];
|
|
4759
|
+
if (header.type !== "block-scalar-header")
|
|
4760
|
+
throw new Error("Invalid block scalar header");
|
|
4761
|
+
type = header.source[0] === ">" ? "BLOCK_FOLDED" : "BLOCK_LITERAL";
|
|
4762
|
+
break;
|
|
4763
|
+
}
|
|
4764
|
+
default:
|
|
4765
|
+
type = "PLAIN";
|
|
4766
|
+
}
|
|
4767
|
+
const source = stringifyString({ type, value }, {
|
|
4768
|
+
implicitKey: implicitKey || indent === null,
|
|
4769
|
+
indent: indent !== null && indent > 0 ? " ".repeat(indent) : "",
|
|
4770
|
+
inFlow,
|
|
4771
|
+
options: { blockQuote: true, lineWidth: -1 }
|
|
4772
|
+
});
|
|
4773
|
+
switch (source[0]) {
|
|
4774
|
+
case "|":
|
|
4775
|
+
case ">":
|
|
4776
|
+
setBlockScalarValue(token, source);
|
|
4777
|
+
break;
|
|
4778
|
+
case '"':
|
|
4779
|
+
setFlowScalarValue(token, source, "double-quoted-scalar");
|
|
4780
|
+
break;
|
|
4781
|
+
case "'":
|
|
4782
|
+
setFlowScalarValue(token, source, "single-quoted-scalar");
|
|
4783
|
+
break;
|
|
4784
|
+
default:
|
|
4785
|
+
setFlowScalarValue(token, source, "scalar");
|
|
4786
|
+
}
|
|
4787
|
+
}
|
|
4788
|
+
function setBlockScalarValue(token, source) {
|
|
4789
|
+
const he = source.indexOf("\n");
|
|
4790
|
+
const head = source.substring(0, he);
|
|
4791
|
+
const body = source.substring(he + 1) + "\n";
|
|
4792
|
+
if (token.type === "block-scalar") {
|
|
4793
|
+
const header = token.props[0];
|
|
4794
|
+
if (header.type !== "block-scalar-header")
|
|
4795
|
+
throw new Error("Invalid block scalar header");
|
|
4796
|
+
header.source = head;
|
|
4797
|
+
token.source = body;
|
|
4798
|
+
} else {
|
|
4799
|
+
const { offset } = token;
|
|
4800
|
+
const indent = "indent" in token ? token.indent : -1;
|
|
4801
|
+
const props = [
|
|
4802
|
+
{ type: "block-scalar-header", offset, indent, source: head }
|
|
4803
|
+
];
|
|
4804
|
+
if (!addEndtoBlockProps(props, "end" in token ? token.end : void 0))
|
|
4805
|
+
props.push({ type: "newline", offset: -1, indent, source: "\n" });
|
|
4806
|
+
for (const key of Object.keys(token))
|
|
4807
|
+
if (key !== "type" && key !== "offset")
|
|
4808
|
+
delete token[key];
|
|
4809
|
+
Object.assign(token, { type: "block-scalar", indent, props, source: body });
|
|
4810
|
+
}
|
|
4811
|
+
}
|
|
4812
|
+
function addEndtoBlockProps(props, end) {
|
|
4813
|
+
if (end)
|
|
4814
|
+
for (const st of end)
|
|
4815
|
+
switch (st.type) {
|
|
4816
|
+
case "space":
|
|
4817
|
+
case "comment":
|
|
4818
|
+
props.push(st);
|
|
4819
|
+
break;
|
|
4820
|
+
case "newline":
|
|
4821
|
+
props.push(st);
|
|
4822
|
+
return true;
|
|
4823
|
+
}
|
|
4824
|
+
return false;
|
|
4825
|
+
}
|
|
4826
|
+
function setFlowScalarValue(token, source, type) {
|
|
4827
|
+
switch (token.type) {
|
|
4828
|
+
case "scalar":
|
|
4829
|
+
case "double-quoted-scalar":
|
|
4830
|
+
case "single-quoted-scalar":
|
|
4831
|
+
token.type = type;
|
|
4832
|
+
token.source = source;
|
|
4833
|
+
break;
|
|
4834
|
+
case "block-scalar": {
|
|
4835
|
+
const end = token.props.slice(1);
|
|
4836
|
+
let oa = source.length;
|
|
4837
|
+
if (token.props[0].type === "block-scalar-header")
|
|
4838
|
+
oa -= token.props[0].source.length;
|
|
4839
|
+
for (const tok of end)
|
|
4840
|
+
tok.offset += oa;
|
|
4841
|
+
delete token.props;
|
|
4842
|
+
Object.assign(token, { type, source, end });
|
|
4843
|
+
break;
|
|
4844
|
+
}
|
|
4845
|
+
case "block-map":
|
|
4846
|
+
case "block-seq": {
|
|
4847
|
+
const offset = token.offset + source.length;
|
|
4848
|
+
const nl = { type: "newline", offset, indent: token.indent, source: "\n" };
|
|
4849
|
+
delete token.items;
|
|
4850
|
+
Object.assign(token, { type, source, end: [nl] });
|
|
4851
|
+
break;
|
|
4852
|
+
}
|
|
4853
|
+
default: {
|
|
4854
|
+
const indent = "indent" in token ? token.indent : -1;
|
|
4855
|
+
const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st) => st.type === "space" || st.type === "comment" || st.type === "newline") : [];
|
|
4856
|
+
for (const key of Object.keys(token))
|
|
4857
|
+
if (key !== "type" && key !== "offset")
|
|
4858
|
+
delete token[key];
|
|
4859
|
+
Object.assign(token, { type, indent, source, end });
|
|
4860
|
+
}
|
|
4861
|
+
}
|
|
4862
|
+
}
|
|
4863
|
+
|
|
4864
|
+
// ../../node_modules/.bun/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst-stringify.js
|
|
4865
|
+
var stringify2 = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
|
|
4866
|
+
function stringifyToken(token) {
|
|
4867
|
+
switch (token.type) {
|
|
4868
|
+
case "block-scalar": {
|
|
4869
|
+
let res = "";
|
|
4870
|
+
for (const tok of token.props)
|
|
4871
|
+
res += stringifyToken(tok);
|
|
4872
|
+
return res + token.source;
|
|
4873
|
+
}
|
|
4874
|
+
case "block-map":
|
|
4875
|
+
case "block-seq": {
|
|
4876
|
+
let res = "";
|
|
4877
|
+
for (const item of token.items)
|
|
4878
|
+
res += stringifyItem(item);
|
|
4879
|
+
return res;
|
|
4880
|
+
}
|
|
4881
|
+
case "flow-collection": {
|
|
4882
|
+
let res = token.start.source;
|
|
4883
|
+
for (const item of token.items)
|
|
4884
|
+
res += stringifyItem(item);
|
|
4885
|
+
for (const st of token.end)
|
|
4886
|
+
res += st.source;
|
|
4887
|
+
return res;
|
|
4888
|
+
}
|
|
4889
|
+
case "document": {
|
|
4890
|
+
let res = stringifyItem(token);
|
|
4891
|
+
if (token.end)
|
|
4892
|
+
for (const st of token.end)
|
|
4893
|
+
res += st.source;
|
|
4894
|
+
return res;
|
|
4895
|
+
}
|
|
4896
|
+
default: {
|
|
4897
|
+
let res = token.source;
|
|
4898
|
+
if ("end" in token && token.end)
|
|
4899
|
+
for (const st of token.end)
|
|
4900
|
+
res += st.source;
|
|
4901
|
+
return res;
|
|
4902
|
+
}
|
|
4903
|
+
}
|
|
4904
|
+
}
|
|
4905
|
+
function stringifyItem({ start, key, sep, value }) {
|
|
4906
|
+
let res = "";
|
|
4907
|
+
for (const st of start)
|
|
4908
|
+
res += st.source;
|
|
4909
|
+
if (key)
|
|
4910
|
+
res += stringifyToken(key);
|
|
4911
|
+
if (sep)
|
|
4912
|
+
for (const st of sep)
|
|
4913
|
+
res += st.source;
|
|
4914
|
+
if (value)
|
|
4915
|
+
res += stringifyToken(value);
|
|
4916
|
+
return res;
|
|
4917
|
+
}
|
|
4659
4918
|
|
|
4660
4919
|
// ../../node_modules/.bun/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst-visit.js
|
|
4661
4920
|
var BREAK2 = /* @__PURE__ */ Symbol("break visit");
|
|
@@ -4718,6 +4977,22 @@ var BOM = "\uFEFF";
|
|
|
4718
4977
|
var DOCUMENT = "";
|
|
4719
4978
|
var FLOW_END = "";
|
|
4720
4979
|
var SCALAR2 = "";
|
|
4980
|
+
var isCollection2 = (token) => !!token && "items" in token;
|
|
4981
|
+
var isScalar2 = (token) => !!token && (token.type === "scalar" || token.type === "single-quoted-scalar" || token.type === "double-quoted-scalar" || token.type === "block-scalar");
|
|
4982
|
+
function prettyToken(token) {
|
|
4983
|
+
switch (token) {
|
|
4984
|
+
case BOM:
|
|
4985
|
+
return "<BOM>";
|
|
4986
|
+
case DOCUMENT:
|
|
4987
|
+
return "<DOC>";
|
|
4988
|
+
case FLOW_END:
|
|
4989
|
+
return "<FLOW_END>";
|
|
4990
|
+
case SCALAR2:
|
|
4991
|
+
return "<SCALAR>";
|
|
4992
|
+
default:
|
|
4993
|
+
return JSON.stringify(token);
|
|
4994
|
+
}
|
|
4995
|
+
}
|
|
4721
4996
|
function tokenType(source) {
|
|
4722
4997
|
switch (source) {
|
|
4723
4998
|
case BOM:
|
|
@@ -5360,6 +5635,31 @@ var Lexer = class {
|
|
|
5360
5635
|
}
|
|
5361
5636
|
};
|
|
5362
5637
|
|
|
5638
|
+
// ../../node_modules/.bun/yaml@2.9.1/node_modules/yaml/browser/dist/parse/line-counter.js
|
|
5639
|
+
var LineCounter = class {
|
|
5640
|
+
constructor() {
|
|
5641
|
+
this.lineStarts = [];
|
|
5642
|
+
this.addNewLine = (offset) => this.lineStarts.push(offset);
|
|
5643
|
+
this.linePos = (offset) => {
|
|
5644
|
+
let low = 0;
|
|
5645
|
+
let high = this.lineStarts.length;
|
|
5646
|
+
while (low < high) {
|
|
5647
|
+
const mid = low + high >> 1;
|
|
5648
|
+
if (this.lineStarts[mid] < offset)
|
|
5649
|
+
low = mid + 1;
|
|
5650
|
+
else
|
|
5651
|
+
high = mid;
|
|
5652
|
+
}
|
|
5653
|
+
if (this.lineStarts[low] === offset)
|
|
5654
|
+
return { line: low + 1, col: 1 };
|
|
5655
|
+
if (low === 0)
|
|
5656
|
+
return { line: 0, col: offset };
|
|
5657
|
+
const start = this.lineStarts[low - 1];
|
|
5658
|
+
return { line: low, col: offset - start + 1 };
|
|
5659
|
+
};
|
|
5660
|
+
}
|
|
5661
|
+
};
|
|
5662
|
+
|
|
5363
5663
|
// ../../node_modules/.bun/yaml@2.9.1/node_modules/yaml/browser/dist/parse/parser.js
|
|
5364
5664
|
function includesToken(list, type) {
|
|
5365
5665
|
for (let i = 0; i < list.length; ++i)
|
|
@@ -6229,6 +6529,20 @@ function parseOptions(options) {
|
|
|
6229
6529
|
const lineCounter = options.lineCounter || prettyErrors && new LineCounter() || null;
|
|
6230
6530
|
return { lineCounter, prettyErrors };
|
|
6231
6531
|
}
|
|
6532
|
+
function parseAllDocuments(source, options = {}) {
|
|
6533
|
+
const { lineCounter, prettyErrors } = parseOptions(options);
|
|
6534
|
+
const parser = new Parser(lineCounter?.addNewLine);
|
|
6535
|
+
const composer = new Composer(options);
|
|
6536
|
+
const docs = Array.from(composer.compose(parser.parse(source)));
|
|
6537
|
+
if (prettyErrors && lineCounter)
|
|
6538
|
+
for (const doc of docs) {
|
|
6539
|
+
doc.errors.forEach(prettifyError(source, lineCounter));
|
|
6540
|
+
doc.warnings.forEach(prettifyError(source, lineCounter));
|
|
6541
|
+
}
|
|
6542
|
+
if (docs.length > 0)
|
|
6543
|
+
return docs;
|
|
6544
|
+
return Object.assign([], { empty: true }, composer.streamInfo());
|
|
6545
|
+
}
|
|
6232
6546
|
function parseDocument(source, options = {}) {
|
|
6233
6547
|
const { lineCounter, prettyErrors } = parseOptions(options);
|
|
6234
6548
|
const parser = new Parser(lineCounter?.addNewLine);
|
|
@@ -6267,8 +6581,61 @@ function parse(src, reviver, options) {
|
|
|
6267
6581
|
}
|
|
6268
6582
|
return doc.toJS(Object.assign({ reviver: _reviver }, options));
|
|
6269
6583
|
}
|
|
6584
|
+
function stringify3(value, replacer, options) {
|
|
6585
|
+
let _replacer = null;
|
|
6586
|
+
if (typeof replacer === "function" || Array.isArray(replacer)) {
|
|
6587
|
+
_replacer = replacer;
|
|
6588
|
+
} else if (options === void 0 && replacer) {
|
|
6589
|
+
options = replacer;
|
|
6590
|
+
}
|
|
6591
|
+
if (typeof options === "string")
|
|
6592
|
+
options = options.length;
|
|
6593
|
+
if (typeof options === "number") {
|
|
6594
|
+
const indent = Math.round(options);
|
|
6595
|
+
options = indent < 1 ? void 0 : indent > 8 ? { indent: 8 } : { indent };
|
|
6596
|
+
}
|
|
6597
|
+
if (value === void 0) {
|
|
6598
|
+
const { keepUndefined } = options ?? replacer ?? {};
|
|
6599
|
+
if (!keepUndefined)
|
|
6600
|
+
return void 0;
|
|
6601
|
+
}
|
|
6602
|
+
if (isDocument(value) && !_replacer)
|
|
6603
|
+
return value.toString(options);
|
|
6604
|
+
return new Document(value, _replacer, options).toString(options);
|
|
6605
|
+
}
|
|
6606
|
+
|
|
6607
|
+
// ../../node_modules/.bun/yaml@2.9.1/node_modules/yaml/browser/index.js
|
|
6608
|
+
var browser_default = dist_exports;
|
|
6270
6609
|
|
|
6271
6610
|
export {
|
|
6611
|
+
isAlias,
|
|
6612
|
+
isDocument,
|
|
6613
|
+
isMap,
|
|
6614
|
+
isPair,
|
|
6615
|
+
isScalar,
|
|
6616
|
+
isSeq,
|
|
6617
|
+
isCollection,
|
|
6618
|
+
isNode,
|
|
6619
|
+
visit,
|
|
6620
|
+
visitAsync,
|
|
6621
|
+
Alias,
|
|
6622
|
+
Scalar,
|
|
6623
|
+
Pair,
|
|
6624
|
+
YAMLMap,
|
|
6625
|
+
YAMLSeq,
|
|
6626
|
+
Schema,
|
|
6627
|
+
Document,
|
|
6628
|
+
YAMLError,
|
|
6629
|
+
YAMLParseError,
|
|
6630
|
+
YAMLWarning,
|
|
6631
|
+
Composer,
|
|
6632
|
+
cst_exports,
|
|
6633
|
+
Lexer,
|
|
6634
|
+
LineCounter,
|
|
6635
|
+
Parser,
|
|
6636
|
+
parseAllDocuments,
|
|
6272
6637
|
parseDocument,
|
|
6273
|
-
parse
|
|
6638
|
+
parse,
|
|
6639
|
+
stringify3 as stringify,
|
|
6640
|
+
browser_default
|
|
6274
6641
|
};
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
HttpApiEndpoint_exports,
|
|
3
|
-
HttpApiGroup_exports,
|
|
4
|
-
HttpApi_exports,
|
|
5
|
-
UiFailed,
|
|
6
|
-
UiForbidden,
|
|
7
|
-
UiUnauthorized
|
|
8
|
-
} from "./chunk-OHRT55C4.js";
|
|
9
1
|
import {
|
|
10
2
|
Schema_exports
|
|
11
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CDL5PM2Q.js";
|
|
12
4
|
|
|
13
5
|
// src/contracts/ui-auth.ts
|
|
14
6
|
var AppSignInId = Schema_exports.String.check(Schema_exports.isPattern(/^[a-f0-9]{64}$/)).pipe(
|
|
@@ -31,26 +23,14 @@ var AppReturnPath = Schema_exports.String.check(
|
|
|
31
23
|
})
|
|
32
24
|
).pipe(Schema_exports.brand("AppReturnPath"));
|
|
33
25
|
var AppSignInCallback = Schema_exports.Struct({ request: AppSignInId, code: AppSignInCode });
|
|
34
|
-
var
|
|
35
|
-
|
|
36
|
-
HttpApiEndpoint_exports.post("start", "/_executor/auth/start", {
|
|
37
|
-
payload: Schema_exports.Struct({ returnTo: AppReturnPath }),
|
|
38
|
-
success: Schema_exports.Struct({ url: Schema_exports.String }),
|
|
39
|
-
error: [UiForbidden, UiFailed]
|
|
40
|
-
})
|
|
41
|
-
).add(
|
|
42
|
-
HttpApiEndpoint_exports.post("complete", "/_executor/auth/complete", {
|
|
43
|
-
payload: AppSignInCallback,
|
|
44
|
-
success: Schema_exports.Struct({ returnTo: AppReturnPath }),
|
|
45
|
-
error: [UiUnauthorized, UiForbidden, UiFailed]
|
|
46
|
-
})
|
|
47
|
-
)
|
|
48
|
-
);
|
|
26
|
+
var appSignInCallbackPath = "/_executor/auth/callback";
|
|
27
|
+
var AppSignInFailure = Schema_exports.Literals(["ended", "forbidden", "unavailable"]);
|
|
49
28
|
|
|
50
29
|
export {
|
|
51
30
|
AppSignInId,
|
|
52
31
|
AppSignInCode,
|
|
53
32
|
AppReturnPath,
|
|
54
33
|
AppSignInCallback,
|
|
55
|
-
|
|
34
|
+
appSignInCallbackPath,
|
|
35
|
+
AppSignInFailure
|
|
56
36
|
};
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
2
|
+
fixedRouter
|
|
3
|
+
} from "./chunk-Z2QY3YTF.js";
|
|
4
|
+
import {
|
|
5
|
+
nativeOperation,
|
|
6
|
+
operationDeclaration,
|
|
7
|
+
routerDeclaration
|
|
8
|
+
} from "./chunk-GPFVWWDZ.js";
|
|
4
9
|
|
|
5
10
|
// src/implementation/protocol-operations.ts
|
|
6
11
|
var protocolOperations = (operations, kinds = {}) => {
|
|
7
|
-
const
|
|
8
|
-
const mutations = {};
|
|
12
|
+
const declared = {};
|
|
9
13
|
for (const [name, operation] of Object.entries(operations)) {
|
|
10
|
-
const kind = Object.hasOwn(kinds, name) ? kinds[name] : operation.readOnly === true ? "query" : "mutation";
|
|
14
|
+
const kind = Object.hasOwn(kinds, name) ? kinds[name] ?? "mutation" : operation.readOnly === true ? "query" : "mutation";
|
|
11
15
|
const native = {
|
|
12
16
|
description: operation.description,
|
|
13
17
|
...operation.title === void 0 ? {} : { title: operation.title },
|
|
@@ -18,12 +22,20 @@ var protocolOperations = (operations, kinds = {}) => {
|
|
|
18
22
|
};
|
|
19
23
|
const output = Object.getOwnPropertyDescriptor(operation, "outputSchema");
|
|
20
24
|
const withOutput = (target) => output === void 0 || output.get === void 0 && output.value === void 0 ? target : Object.defineProperty(target, "outputSchema", { ...output, enumerable: true });
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
declared[name] = operationDeclaration(withOutput({ ...native, kind }));
|
|
26
|
+
}
|
|
27
|
+
return declared;
|
|
28
|
+
};
|
|
29
|
+
var protocolRouter = (operations, kinds = {}) => {
|
|
30
|
+
const native = {};
|
|
31
|
+
for (const [name, declaration] of Object.entries(protocolOperations(operations, kinds))) {
|
|
32
|
+
const operation = nativeOperation(declaration);
|
|
33
|
+
if (operation !== void 0) native[name] = operation;
|
|
23
34
|
}
|
|
24
|
-
return
|
|
35
|
+
return routerDeclaration(fixedRouter(native));
|
|
25
36
|
};
|
|
26
37
|
|
|
27
38
|
export {
|
|
28
|
-
protocolOperations
|
|
39
|
+
protocolOperations,
|
|
40
|
+
protocolRouter
|
|
29
41
|
};
|
|
@@ -2,36 +2,36 @@ import {
|
|
|
2
2
|
adaptMcpTools,
|
|
3
3
|
mcpClient,
|
|
4
4
|
mcpJsonSchemaValidator
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EFAPIRVB.js";
|
|
6
6
|
import {
|
|
7
7
|
accountProviderError,
|
|
8
8
|
httpProviderError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MKWZPDR6.js";
|
|
10
10
|
import {
|
|
11
11
|
McpError,
|
|
12
12
|
McpToolsOptions,
|
|
13
13
|
defaultMcpClientLimits
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KRSCJDTW.js";
|
|
15
15
|
import {
|
|
16
16
|
ProviderError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-R3EV5FTO.js";
|
|
18
18
|
import {
|
|
19
19
|
captureTelemetry
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ODEIDRGW.js";
|
|
21
21
|
import {
|
|
22
22
|
FetchHttpClient_exports
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-57RKNWL2.js";
|
|
24
24
|
import {
|
|
25
25
|
HttpClientRequest_exports,
|
|
26
26
|
HttpClient_exports
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-UK573G7W.js";
|
|
28
28
|
import {
|
|
29
29
|
Deferred_exports,
|
|
30
30
|
Effect_exports,
|
|
31
31
|
Redacted_exports,
|
|
32
32
|
Schema_exports,
|
|
33
33
|
Stream_exports
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-CDL5PM2Q.js";
|
|
35
35
|
|
|
36
36
|
// src/implementation/mcp.ts
|
|
37
37
|
import { UnauthorizedError } from "@modelcontextprotocol/sdk/client/auth.js";
|