@veryfront/ext-yaml 0.1.1187-rc.0

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 (80) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +2 -0
  3. package/README.md +58 -0
  4. package/esm/_dnt.polyfills.d.ts +12 -0
  5. package/esm/_dnt.polyfills.d.ts.map +1 -0
  6. package/esm/_dnt.polyfills.js +15 -0
  7. package/esm/deno.d.ts +29 -0
  8. package/esm/deno.d.ts.map +1 -0
  9. package/esm/deno.js +27 -0
  10. package/esm/deps/jsr.io/@std/yaml/1.1.0/_chars.d.ts +33 -0
  11. package/esm/deps/jsr.io/@std/yaml/1.1.0/_chars.d.ts.map +1 -0
  12. package/esm/deps/jsr.io/@std/yaml/1.1.0/_chars.js +48 -0
  13. package/esm/deps/jsr.io/@std/yaml/1.1.0/_loader_state.d.ts +64 -0
  14. package/esm/deps/jsr.io/@std/yaml/1.1.0/_loader_state.d.ts.map +1 -0
  15. package/esm/deps/jsr.io/@std/yaml/1.1.0/_loader_state.js +1371 -0
  16. package/esm/deps/jsr.io/@std/yaml/1.1.0/_schema.d.ts +44 -0
  17. package/esm/deps/jsr.io/@std/yaml/1.1.0/_schema.d.ts.map +1 -0
  18. package/esm/deps/jsr.io/@std/yaml/1.1.0/_schema.js +117 -0
  19. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/binary.d.ts +3 -0
  20. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/binary.d.ts.map +1 -0
  21. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/binary.js +103 -0
  22. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/bool.d.ts +3 -0
  23. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/bool.d.ts.map +1 -0
  24. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/bool.js +32 -0
  25. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/float.d.ts +3 -0
  26. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/float.d.ts.map +1 -0
  27. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/float.js +96 -0
  28. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/int.d.ts +3 -0
  29. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/int.d.ts.map +1 -0
  30. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/int.js +159 -0
  31. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/map.d.ts +3 -0
  32. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/map.d.ts.map +1 -0
  33. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/map.js +14 -0
  34. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/merge.d.ts +3 -0
  35. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/merge.d.ts.map +1 -0
  36. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/merge.js +10 -0
  37. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/nil.d.ts +3 -0
  38. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/nil.d.ts.map +1 -0
  39. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/nil.js +22 -0
  40. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/omap.d.ts +3 -0
  41. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/omap.d.ts.map +1 -0
  42. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/omap.js +29 -0
  43. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/pairs.d.ts +3 -0
  44. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/pairs.d.ts.map +1 -0
  45. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/pairs.js +19 -0
  46. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/regexp.d.ts +3 -0
  47. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/regexp.d.ts.map +1 -0
  48. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/regexp.js +30 -0
  49. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/seq.d.ts +3 -0
  50. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/seq.d.ts.map +1 -0
  51. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/seq.js +10 -0
  52. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/set.d.ts +3 -0
  53. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/set.d.ts.map +1 -0
  54. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/set.js +14 -0
  55. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/str.d.ts +3 -0
  56. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/str.d.ts.map +1 -0
  57. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/str.js +9 -0
  58. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/timestamp.d.ts +3 -0
  59. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/timestamp.d.ts.map +1 -0
  60. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/timestamp.js +81 -0
  61. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/undefined.d.ts +3 -0
  62. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/undefined.d.ts.map +1 -0
  63. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/undefined.js +20 -0
  64. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type.d.ts +32 -0
  65. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type.d.ts.map +1 -0
  66. package/esm/deps/jsr.io/@std/yaml/1.1.0/_type.js +6 -0
  67. package/esm/deps/jsr.io/@std/yaml/1.1.0/_utils.d.ts +4 -0
  68. package/esm/deps/jsr.io/@std/yaml/1.1.0/_utils.d.ts.map +1 -0
  69. package/esm/deps/jsr.io/@std/yaml/1.1.0/_utils.js +13 -0
  70. package/esm/deps/jsr.io/@std/yaml/1.1.0/parse.d.ts +76 -0
  71. package/esm/deps/jsr.io/@std/yaml/1.1.0/parse.d.ts.map +1 -0
  72. package/esm/deps/jsr.io/@std/yaml/1.1.0/parse.js +91 -0
  73. package/esm/package.json +3 -0
  74. package/esm/src/adapter.d.ts +4 -0
  75. package/esm/src/adapter.d.ts.map +1 -0
  76. package/esm/src/adapter.js +9 -0
  77. package/esm/src/index.d.ts +12 -0
  78. package/esm/src/index.d.ts.map +1 -0
  79. package/esm/src/index.js +30 -0
  80. package/package.json +59 -0
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,2 @@
1
+ Veryfront Code
2
+ Copyright 2026 Veryfront GmbH
package/README.md ADDED
@@ -0,0 +1,58 @@
1
+ # @veryfront/ext-yaml
2
+
3
+ > **Category:** Parser | **Contract:** `SkillDocumentParserProvider`
4
+
5
+ Provides synchronous YAML decoding for Veryfront Skill document frontmatter,
6
+ backed by the pinned `@std/yaml` implementation.
7
+
8
+ Veryfront core owns the `SKILL.md` frontmatter envelope, document limits,
9
+ mapping-root validation, immutable snapshots, and Skill metadata policy. This
10
+ extension receives only the YAML source between the delimiters and returns the
11
+ decoded, untrusted value. Keeping that boundary narrow prevents YAML parser
12
+ details and third-party dependencies from entering core.
13
+
14
+ ## Activation
15
+
16
+ The package declares automatic activation. Once `@veryfront/ext-yaml` is
17
+ installed, the standard Veryfront server bootstrap discovers it and registers
18
+ `SkillDocumentParserProvider` before project capability discovery. Core fails
19
+ closed when no parser extension is installed; it does not reinterpret malformed
20
+ YAML with a partial built-in grammar.
21
+
22
+ Composition roots that do not run standard extension discovery can register the
23
+ factory explicitly:
24
+
25
+ ```ts
26
+ import extYaml from "@veryfront/ext-yaml";
27
+
28
+ export default defineConfig({
29
+ extensions: [extYaml()],
30
+ });
31
+ ```
32
+
33
+ ## Direct composition
34
+
35
+ Composition roots that manage contracts directly can create the immutable
36
+ provider without running the extension lifecycle:
37
+
38
+ ```ts
39
+ import { createStdYamlSkillDocumentParserProvider } from "@veryfront/ext-yaml";
40
+
41
+ const parser = createStdYamlSkillDocumentParserProvider();
42
+ const decoded = parser.parseFrontmatter("name: example");
43
+ ```
44
+
45
+ The return value remains `unknown`; callers must enforce their own mapping and
46
+ metadata policy. Malformed YAML, duplicate mapping keys, and multi-document
47
+ streams are rejected by the parser.
48
+
49
+ ## Configuration
50
+
51
+ No factory options. The extension takes no config.
52
+
53
+ ## Development tasks
54
+
55
+ | Task | Purpose |
56
+ | ----------------- | ------------------------------------------ |
57
+ | `deno task test` | Run the extension test suite. |
58
+ | `deno task check` | Type-check the extension source and tests. |
@@ -0,0 +1,12 @@
1
+ declare global {
2
+ interface Object {
3
+ /**
4
+ * Determines whether an object has a property with the specified name.
5
+ * @param o An object.
6
+ * @param v A property name.
7
+ */
8
+ hasOwn(o: object, v: PropertyKey): boolean;
9
+ }
10
+ }
11
+ export {};
12
+ //# sourceMappingURL=_dnt.polyfills.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"AAeA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd;;;;WAIG;QACH,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;KAC5C;CACF;AAED,OAAO,EAAE,CAAC"}
@@ -0,0 +1,15 @@
1
+ // https://github.com/tc39/proposal-accessible-object-hasownproperty/blob/main/polyfill.js
2
+ if (!Object.hasOwn) {
3
+ Object.defineProperty(Object, "hasOwn", {
4
+ value: function (object, property) {
5
+ if (object == null) {
6
+ throw new TypeError("Cannot convert undefined or null to object");
7
+ }
8
+ return Object.prototype.hasOwnProperty.call(Object(object), property);
9
+ },
10
+ configurable: true,
11
+ enumerable: false,
12
+ writable: true,
13
+ });
14
+ }
15
+ export {};
package/esm/deno.d.ts ADDED
@@ -0,0 +1,29 @@
1
+ declare namespace _default {
2
+ let name: string;
3
+ let version: string;
4
+ let exports: string;
5
+ namespace veryfront {
6
+ let extension: boolean;
7
+ let activation: string;
8
+ namespace contracts {
9
+ let provides: string[];
10
+ }
11
+ let capabilities: never[];
12
+ namespace npm {
13
+ let runtimeVersionFromManifest: boolean;
14
+ }
15
+ }
16
+ let imports: {
17
+ "@std/yaml/parse": string;
18
+ "@std/assert": string;
19
+ "@std/testing/bdd": string;
20
+ "veryfront/extensions": string;
21
+ "veryfront/extensions/parser": string;
22
+ };
23
+ namespace tasks {
24
+ let test: string;
25
+ let check: string;
26
+ }
27
+ }
28
+ export default _default;
29
+ //# sourceMappingURL=deno.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deno.d.ts","sourceRoot":"","sources":["../src/deno.js"],"names":[],"mappings":""}
package/esm/deno.js ADDED
@@ -0,0 +1,27 @@
1
+ export default {
2
+ "name": "@veryfront/ext-yaml",
3
+ "version": "0.1.0",
4
+ "exports": "./src/index.ts",
5
+ "veryfront": {
6
+ "extension": true,
7
+ "activation": "auto",
8
+ "contracts": {
9
+ "provides": ["SkillDocumentParserProvider"]
10
+ },
11
+ "capabilities": [],
12
+ "npm": {
13
+ "runtimeVersionFromManifest": true
14
+ }
15
+ },
16
+ "imports": {
17
+ "@std/yaml/parse": "jsr:@std/yaml@1.1.0/parse",
18
+ "@std/assert": "jsr:@std/assert@1.0.19",
19
+ "@std/testing/bdd": "jsr:@std/testing@1.0.17/bdd",
20
+ "veryfront/extensions": "../../src/extensions/types.ts",
21
+ "veryfront/extensions/parser": "../../src/extensions/parser/index.ts"
22
+ },
23
+ "tasks": {
24
+ "test": "deno test --allow-all src/",
25
+ "check": "deno check src/index.ts src/*.test.ts"
26
+ }
27
+ };
@@ -0,0 +1,33 @@
1
+ export declare const BOM = 65279;
2
+ export declare const TAB = 9;
3
+ export declare const LINE_FEED = 10;
4
+ export declare const CARRIAGE_RETURN = 13;
5
+ export declare const SPACE = 32;
6
+ export declare const EXCLAMATION = 33;
7
+ export declare const DOUBLE_QUOTE = 34;
8
+ export declare const SHARP = 35;
9
+ export declare const PERCENT = 37;
10
+ export declare const AMPERSAND = 38;
11
+ export declare const SINGLE_QUOTE = 39;
12
+ export declare const ASTERISK = 42;
13
+ export declare const PLUS = 43;
14
+ export declare const COMMA = 44;
15
+ export declare const MINUS = 45;
16
+ export declare const DOT = 46;
17
+ export declare const COLON = 58;
18
+ export declare const SMALLER_THAN = 60;
19
+ export declare const GREATER_THAN = 62;
20
+ export declare const QUESTION = 63;
21
+ export declare const COMMERCIAL_AT = 64;
22
+ export declare const LEFT_SQUARE_BRACKET = 91;
23
+ export declare const BACKSLASH = 92;
24
+ export declare const RIGHT_SQUARE_BRACKET = 93;
25
+ export declare const GRAVE_ACCENT = 96;
26
+ export declare const LEFT_CURLY_BRACKET = 123;
27
+ export declare const VERTICAL_LINE = 124;
28
+ export declare const RIGHT_CURLY_BRACKET = 125;
29
+ export declare function isEOL(c: number): boolean;
30
+ export declare function isWhiteSpace(c: number): boolean;
31
+ export declare function isWhiteSpaceOrEOL(c: number): boolean;
32
+ export declare function isFlowIndicator(c: number): boolean;
33
+ //# sourceMappingURL=_chars.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_chars.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/yaml/1.1.0/_chars.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,GAAG,QAAS,CAAC;AAC1B,eAAO,MAAM,GAAG,IAAO,CAAC;AACxB,eAAO,MAAM,SAAS,KAAO,CAAC;AAC9B,eAAO,MAAM,eAAe,KAAO,CAAC;AACpC,eAAO,MAAM,KAAK,KAAO,CAAC;AAC1B,eAAO,MAAM,WAAW,KAAO,CAAC;AAChC,eAAO,MAAM,YAAY,KAAO,CAAC;AACjC,eAAO,MAAM,KAAK,KAAO,CAAC;AAC1B,eAAO,MAAM,OAAO,KAAO,CAAC;AAC5B,eAAO,MAAM,SAAS,KAAO,CAAC;AAC9B,eAAO,MAAM,YAAY,KAAO,CAAC;AACjC,eAAO,MAAM,QAAQ,KAAO,CAAC;AAC7B,eAAO,MAAM,IAAI,KAAO,CAAC;AACzB,eAAO,MAAM,KAAK,KAAO,CAAC;AAC1B,eAAO,MAAM,KAAK,KAAO,CAAC;AAC1B,eAAO,MAAM,GAAG,KAAO,CAAC;AACxB,eAAO,MAAM,KAAK,KAAO,CAAC;AAC1B,eAAO,MAAM,YAAY,KAAO,CAAC;AACjC,eAAO,MAAM,YAAY,KAAO,CAAC;AACjC,eAAO,MAAM,QAAQ,KAAO,CAAC;AAC7B,eAAO,MAAM,aAAa,KAAO,CAAC;AAClC,eAAO,MAAM,mBAAmB,KAAO,CAAC;AACxC,eAAO,MAAM,SAAS,KAAO,CAAC;AAC9B,eAAO,MAAM,oBAAoB,KAAO,CAAC;AACzC,eAAO,MAAM,YAAY,KAAO,CAAC;AACjC,eAAO,MAAM,kBAAkB,MAAO,CAAC;AACvC,eAAO,MAAM,aAAa,MAAO,CAAC;AAClC,eAAO,MAAM,mBAAmB,MAAO,CAAC;AAExC,wBAAgB,KAAK,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAExC;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAE/C;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAQlD"}
@@ -0,0 +1,48 @@
1
+ // Ported from js-yaml v3.13.1:
2
+ // https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
3
+ // Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
4
+ // Copyright 2018-2026 the Deno authors. MIT license.
5
+ export const BOM = 0xfeff; /* BOM */
6
+ export const TAB = 0x09; /* Tab */
7
+ export const LINE_FEED = 0x0a; /* LF */
8
+ export const CARRIAGE_RETURN = 0x0d; /* CR */
9
+ export const SPACE = 0x20; /* Space */
10
+ export const EXCLAMATION = 0x21; /* ! */
11
+ export const DOUBLE_QUOTE = 0x22; /* " */
12
+ export const SHARP = 0x23; /* # */
13
+ export const PERCENT = 0x25; /* % */
14
+ export const AMPERSAND = 0x26; /* & */
15
+ export const SINGLE_QUOTE = 0x27; /* ' */
16
+ export const ASTERISK = 0x2a; /* * */
17
+ export const PLUS = 0x2b; /* + */
18
+ export const COMMA = 0x2c; /* , */
19
+ export const MINUS = 0x2d; /* - */
20
+ export const DOT = 0x2e; /* . */
21
+ export const COLON = 0x3a; /* : */
22
+ export const SMALLER_THAN = 0x3c; /* < */
23
+ export const GREATER_THAN = 0x3e; /* > */
24
+ export const QUESTION = 0x3f; /* ? */
25
+ export const COMMERCIAL_AT = 0x40; /* @ */
26
+ export const LEFT_SQUARE_BRACKET = 0x5b; /* [ */
27
+ export const BACKSLASH = 0x5c; /* \ */
28
+ export const RIGHT_SQUARE_BRACKET = 0x5d; /* ] */
29
+ export const GRAVE_ACCENT = 0x60; /* ` */
30
+ export const LEFT_CURLY_BRACKET = 0x7b; /* { */
31
+ export const VERTICAL_LINE = 0x7c; /* | */
32
+ export const RIGHT_CURLY_BRACKET = 0x7d; /* } */
33
+ export function isEOL(c) {
34
+ return c === LINE_FEED || c === CARRIAGE_RETURN;
35
+ }
36
+ export function isWhiteSpace(c) {
37
+ return c === TAB || c === SPACE;
38
+ }
39
+ export function isWhiteSpaceOrEOL(c) {
40
+ return isWhiteSpace(c) || isEOL(c);
41
+ }
42
+ export function isFlowIndicator(c) {
43
+ return (c === COMMA ||
44
+ c === LEFT_SQUARE_BRACKET ||
45
+ c === RIGHT_SQUARE_BRACKET ||
46
+ c === LEFT_CURLY_BRACKET ||
47
+ c === RIGHT_CURLY_BRACKET);
48
+ }
@@ -0,0 +1,64 @@
1
+ import { type Schema, type TypeMap } from "./_schema.js";
2
+ import type { KindType, Type } from "./_type.js";
3
+ export interface LoaderStateOptions {
4
+ /** specifies a schema to use. */
5
+ schema?: Schema;
6
+ /** compatibility with JSON.parse behaviour. */
7
+ allowDuplicateKeys?: boolean;
8
+ /** function to call on warning messages. */
9
+ onWarning?(error: Error): void;
10
+ }
11
+ interface State {
12
+ tag: string | null;
13
+ anchor: string | null;
14
+ kind: KindType | null;
15
+ result: unknown[] | Record<string, unknown> | string | null;
16
+ }
17
+ export declare class LoaderState {
18
+ #private;
19
+ lineIndent: number;
20
+ lineStart: number;
21
+ line: number;
22
+ onWarning: ((error: Error) => void) | undefined;
23
+ allowDuplicateKeys: boolean;
24
+ implicitTypes: Type<"scalar">[];
25
+ typeMap: TypeMap;
26
+ checkLineBreaks: boolean;
27
+ tagMap: Map<any, any>;
28
+ anchorMap: Map<any, any>;
29
+ constructor(input: string, { schema, onWarning, allowDuplicateKeys, }: LoaderStateOptions);
30
+ skipWhitespaces(): void;
31
+ skipComment(): void;
32
+ readIndent(): void;
33
+ dispatchWarning(message: string): void;
34
+ yamlDirectiveHandler(args: string[]): string | null;
35
+ tagDirectiveHandler(args: string[]): void;
36
+ captureSegment(start: number, end: number, checkJson: boolean): string | undefined;
37
+ readBlockSequence(tag: string | null, anchor: string | null, nodeIndent: number): State | void;
38
+ mergeMappings(destination: Record<string, unknown>, source: Record<string, unknown>, overridableKeys: Set<string>): void;
39
+ storeMappingPair(result: Record<string, unknown>, overridableKeys: Set<string>, keyTag: string | null, keyNode: Record<PropertyKey, unknown> | unknown[] | string | null, valueNode: unknown, startLine?: number, startPos?: number): Record<string, unknown>;
40
+ readLineBreak(): void;
41
+ skipSeparationSpace(allowComments: boolean, checkIndent: number): number;
42
+ testDocumentSeparator(): boolean;
43
+ readPlainScalar(tag: string | null, anchor: string | null, nodeIndent: number, withinFlowCollection: boolean): State | void;
44
+ readSingleQuotedScalar(tag: string | null, anchor: string | null, nodeIndent: number): State | void;
45
+ readDoubleQuotedScalar(tag: string | null, anchor: string | null, nodeIndent: number): State | void;
46
+ readFlowCollection(tag: string | null, anchor: string | null, nodeIndent: number): State | void;
47
+ readBlockScalar(tag: string | null, anchor: string | null, nodeIndent: number): State | void;
48
+ readBlockMapping(tag: string | null, anchor: string | null, nodeIndent: number, flowIndent: number): State | void;
49
+ readTagProperty(tag: string | null): string | void;
50
+ readAnchorProperty(anchor: string | null): string | void;
51
+ readAlias(): string | void;
52
+ resolveTag(state: State): State;
53
+ composeNode({ parentIndent, nodeContext, allowToSeek, allowCompact }: {
54
+ parentIndent: number;
55
+ nodeContext: number;
56
+ allowToSeek: boolean;
57
+ allowCompact: boolean;
58
+ }): State | void;
59
+ readDirectives(): boolean;
60
+ readDocument(): string | unknown[] | Record<string, unknown> | null;
61
+ readDocuments(): Generator<string | unknown[] | Record<string, unknown> | null, void, unknown>;
62
+ }
63
+ export {};
64
+ //# sourceMappingURL=_loader_state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_loader_state.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/yaml/1.1.0/_loader_state.ts"],"names":[],"mappings":"AAsCA,OAAO,EAAkB,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAqBjD,MAAM,WAAW,kBAAkB;IACjC,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+CAA+C;IAC/C,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,4CAA4C;IAC5C,SAAS,CAAC,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CAChC;AAyJD,UAAU,KAAK;IACb,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;IACtB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC;CAC7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