apps 0.0.1-beta.1 → 0.0.1-beta.10

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.
Files changed (118) hide show
  1. package/README.md +65 -43
  2. package/framework-reference.json +1 -1
  3. package/js/browser-XIPJGLH2.js +65 -0
  4. package/js/{chunk-SATWJKN6.js → chunk-27F7W2LG.js} +1 -1
  5. package/js/{chunk-HDJH3RPR.js → chunk-57RKNWL2.js} +2 -2
  6. package/js/{chunk-2HHMABB6.js → chunk-5T57N25Q.js} +61 -13
  7. package/js/{chunk-6IIO4NPI.js → chunk-72JNVHPK.js} +21 -9
  8. package/js/{chunk-FW5HBOIK.js → chunk-CDL5PM2Q.js} +307 -169
  9. package/js/{chunk-X7SFGU4Q.js → chunk-CRDWFA74.js} +28 -9
  10. package/js/{chunk-G7IE6BKC.js → chunk-EPT3ZP52.js} +8 -8
  11. package/js/chunk-FL2QR3XW.js +507 -0
  12. package/js/{chunk-OHRT55C4.js → chunk-IJX4CYZO.js} +3 -6
  13. package/js/{chunk-ZTFQHGEB.js → chunk-IPI4MFSN.js} +3 -5
  14. package/js/{chunk-YEJOQEII.js → chunk-JU7VHODU.js} +1 -1
  15. package/js/chunk-KUMBKVJD.js +39 -0
  16. package/js/{chunk-EVJUVWN2.js → chunk-M3B3DE4K.js} +2 -2
  17. package/js/{chunk-ZJWDMTE3.js → chunk-MKWZPDR6.js} +3 -3
  18. package/js/{chunk-BMOIAIVR.js → chunk-N7YDVXYJ.js} +49 -1
  19. package/js/chunk-NKLWZJLE.js +172 -0
  20. package/js/{chunk-ZCAMUXSG.js → chunk-ODEIDRGW.js} +3 -4
  21. package/js/{chunk-M6ZRRIBI.js → chunk-PJJ24GU7.js} +1 -1
  22. package/js/{chunk-FZJOYIZO.js → chunk-PZB6T6KU.js} +1 -1
  23. package/js/chunk-R3EV5FTO.js +97 -0
  24. package/js/{chunk-6YBRWRK3.js → chunk-RFVIONFX.js} +43 -14
  25. package/js/{chunk-QKHR7BMF.js → chunk-UK573G7W.js} +1 -1
  26. package/js/{chunk-NCYXZN2G.js → chunk-UVL56Z6E.js} +390 -23
  27. package/js/{chunk-KOXMLKTM.js → chunk-V5KNQVCT.js} +308 -316
  28. package/js/{chunk-4LPG6RCH.js → chunk-VFZKSM3T.js} +5 -25
  29. package/js/{chunk-IHQ4ML7K.js → chunk-WLE7WX2U.js} +554 -102
  30. package/js/{chunk-RBAC33PQ.js → chunk-YXQHV65J.js} +58 -83
  31. package/js/chunk-Z5M2LQOZ.js +209 -0
  32. package/js/{chunk-PLCMJREA.js → chunk-ZQINWV4W.js} +60 -20
  33. package/js/client.js +10 -26
  34. package/js/contracts.js +70 -15
  35. package/js/effect.js +19 -19
  36. package/js/es-APDZKREY.js +40968 -0
  37. package/js/graphql.js +34 -39
  38. package/js/host.js +23 -23
  39. package/js/index.js +199 -195
  40. package/js/mcp/effect.js +21 -21
  41. package/js/mcp/stdio.js +25 -25
  42. package/js/mcp.js +60 -44
  43. package/js/openapi.js +826 -41682
  44. package/js/react.js +3 -3
  45. package/js/skills/effect.js +3 -4
  46. package/js/skills.js +53 -17
  47. package/js/storage/facet.js +4 -4
  48. package/js/ui/auth/contracts.js +8 -9
  49. package/js/ui/auth.js +16 -14
  50. package/js/ui/contracts.js +4 -4
  51. package/js/ui/serving.js +9 -8
  52. package/package.json +1 -1
  53. package/runtime.json +1 -1
  54. package/types/app-cache/src/contracts/cache.d.ts +42 -2
  55. package/types/app-cache/src/index.d.ts +59 -1
  56. package/types/app-data/src/contracts/database.d.ts +33 -6
  57. package/types/app-data/src/implementation/schema.d.ts +2 -17
  58. package/types/apps/src/contracts/app.d.ts +7 -6
  59. package/types/apps/src/contracts/cache.d.ts +4 -1
  60. package/types/apps/src/contracts/failure.d.ts +25 -0
  61. package/types/apps/src/contracts/host.d.ts +34 -679
  62. package/types/apps/src/contracts/mcp.d.ts +16 -0
  63. package/types/apps/src/contracts/openapi.d.ts +11 -1
  64. package/types/apps/src/contracts/operations.d.ts +0 -5
  65. package/types/apps/src/contracts/protocol-version.d.ts +6 -0
  66. package/types/apps/src/contracts/protocols/1.d.ts +1589 -0
  67. package/types/apps/src/contracts/protocols/2.d.ts +668 -0
  68. package/types/apps/src/contracts/protocols/3.d.ts +676 -0
  69. package/types/apps/src/contracts/protocols/4.d.ts +1229 -0
  70. package/types/apps/src/contracts/protocols/5.d.ts +1090 -0
  71. package/types/apps/src/contracts/provider.d.ts +51 -5
  72. package/types/apps/src/contracts/router.d.ts +59 -0
  73. package/types/apps/src/contracts/skills.d.ts +17 -8
  74. package/types/apps/src/contracts/storage.d.ts +3 -3
  75. package/types/apps/src/contracts/ui-auth.d.ts +6 -14
  76. package/types/apps/src/contracts/workflows.d.ts +34 -3
  77. package/types/apps/src/graphql.d.ts +1 -3
  78. package/types/apps/src/implementation/account-router.d.ts +12 -0
  79. package/types/apps/src/implementation/app.d.ts +5 -4
  80. package/types/apps/src/implementation/cache.d.ts +3 -1
  81. package/types/apps/src/implementation/catalog-cache.d.ts +9 -2
  82. package/types/apps/src/implementation/elicitation.d.ts +1 -1
  83. package/types/apps/src/implementation/failure-detail.d.ts +25 -0
  84. package/types/apps/src/implementation/graphql-catalog.d.ts +1 -4
  85. package/types/apps/src/implementation/mcp-catalog.d.ts +1 -4
  86. package/types/apps/src/implementation/mcp-client.d.ts +35 -19
  87. package/types/apps/src/implementation/mcp.d.ts +35 -19
  88. package/types/apps/src/implementation/openapi-compile.d.ts +3 -2
  89. package/types/apps/src/implementation/openapi-document.d.ts +0 -2
  90. package/types/apps/src/implementation/openapi-names.d.ts +18 -0
  91. package/types/apps/src/implementation/openapi-request.d.ts +0 -1
  92. package/types/apps/src/implementation/openapi-source.d.ts +7 -7
  93. package/types/apps/src/implementation/operations.d.ts +26 -3
  94. package/types/apps/src/implementation/protocol-operations.d.ts +3 -4
  95. package/types/apps/src/implementation/provider.d.ts +9 -4
  96. package/types/apps/src/implementation/router-catalog.d.ts +225 -0
  97. package/types/apps/src/implementation/router.d.ts +59 -0
  98. package/types/apps/src/implementation/schema.d.ts +5 -6
  99. package/types/apps/src/implementation/storage.d.ts +5 -3
  100. package/types/apps/src/implementation/swagger-client.d.ts +28 -0
  101. package/types/apps/src/implementation/ui-auth.d.ts +11 -5
  102. package/types/apps/src/implementation/ui-serving.d.ts +4 -2
  103. package/types/apps/src/implementation/webhooks.d.ts +1 -1
  104. package/types/apps/src/implementation/workflow-context.d.ts +11 -3
  105. package/types/apps/src/index.d.ts +5 -4
  106. package/types/apps/src/mcp-stdio.d.ts +2 -5
  107. package/types/apps/src/mcp.d.ts +5 -4
  108. package/types/apps/src/openapi.d.ts +6 -6
  109. package/types/apps/src/skills.d.ts +6 -3
  110. package/types/apps/src/ui-auth.d.ts +2 -2
  111. package/types/telemetry/src/browser-operations.d.ts +5 -2
  112. package/js/chunk-PZ36XMXW.js +0 -93
  113. package/js/chunk-SWPD52J7.js +0 -35
  114. package/js/chunk-TE4KO4HI.js +0 -47
  115. package/js/chunk-W7D7WVSY.js +0 -18
  116. package/types/apps/src/contracts/dynamic-tools.d.ts +0 -13
  117. package/types/apps/src/implementation/account-operations.d.ts +0 -151
  118. 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/line-counter.js
4636
- var LineCounter = class {
4637
- constructor() {
4638
- this.lineStarts = [];
4639
- this.addNewLine = (offset) => this.lineStarts.push(offset);
4640
- this.linePos = (offset) => {
4641
- let low = 0;
4642
- let high = this.lineStarts.length;
4643
- while (low < high) {
4644
- const mid = low + high >> 1;
4645
- if (this.lineStarts[mid] < offset)
4646
- low = mid + 1;
4647
- else
4648
- high = mid;
4649
- }
4650
- if (this.lineStarts[low] === offset)
4651
- return { line: low + 1, col: 1 };
4652
- if (low === 0)
4653
- return { line: 0, col: offset };
4654
- const start = this.lineStarts[low - 1];
4655
- return { line: low, col: offset - start + 1 };
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
  };