@meridian-flow/mars-schema 0.35.1 → 0.36.1
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 +9 -3
- package/fixtures/alias-candidates/auto-sonnet/expected.json +7 -0
- package/fixtures/alias-candidates/auto-sonnet/request.json +100 -0
- package/fixtures/alias-candidates/no-match-is-empty/expected.json +1 -0
- package/fixtures/alias-candidates/no-match-is-empty/request.json +94 -0
- package/fixtures/alias-candidates/pinned-alone/expected.json +3 -0
- package/fixtures/alias-candidates/pinned-alone/request.json +92 -0
- package/fixtures/alias-candidates/pinned-widened-by-match/expected.json +10 -0
- package/fixtures/alias-candidates/pinned-widened-by-match/request.json +98 -0
- package/fixtures/alias-narrow/all-providers/expected.json +27 -0
- package/fixtures/alias-narrow/all-providers/request.json +32 -0
- package/fixtures/alias-narrow/default-list/expected.json +18 -0
- package/fixtures/alias-narrow/default-list/request.json +29 -0
- package/fixtures/alias-narrow/named-list/expected.json +11 -0
- package/fixtures/alias-narrow/named-list/request.json +33 -0
- package/fixtures/alias-resolve-all/meridian-base-real-rows/expected.json +21 -0
- package/fixtures/alias-resolve-all/meridian-base-real-rows/request.json +2759 -0
- package/fixtures/read/manifest-broken-tables/expected.json +78 -0
- package/fixtures/read/manifest-broken-tables/mars.toml +24 -0
- package/fixtures/read/manifest-consumer-invalid/expected.json +50 -0
- package/fixtures/read/manifest-consumer-invalid/mars.toml +13 -0
- package/fixtures/read/manifest-consumer-no-package/expected.json +16 -0
- package/fixtures/read/manifest-consumer-no-package/mars.toml +5 -0
- package/fixtures/read/manifest-dependencies/expected.json +12 -1
- package/fixtures/read/manifest-every-table/expected.json +211 -0
- package/fixtures/read/manifest-every-table/mars.toml +95 -0
- package/fixtures/read/manifest-meridian-base/expected.json +235 -0
- package/fixtures/read/manifest-meridian-base/mars.toml +161 -0
- package/fixtures/read/manifest-unsafe-dependencies/expected.json +82 -0
- package/fixtures/read/manifest-unsafe-dependencies/mars.toml +14 -0
- package/fixtures/read/manifest-unsafe-values/expected.json +100 -0
- package/fixtures/read/manifest-unsafe-values/mars.toml +28 -0
- package/fixtures/resolve/engine-skip/expected.json +1 -1
- package/fixtures/resolve/locked-commit-missing-latest/expected.json +4 -2
- package/fixtures/version/select-latest-constraint-keeps-lock/expected.json +3 -0
- package/index.d.ts +147 -15
- package/node/mars_schema_wasm.d.ts +30 -11
- package/node/mars_schema_wasm.js +97 -34
- package/node/mars_schema_wasm_bg.wasm +0 -0
- package/node/mars_schema_wasm_bg.wasm.d.ts +7 -4
- package/package.json +1 -1
- package/web/mars_schema_wasm.d.ts +37 -15
- package/web/mars_schema_wasm.js +94 -34
- package/web/mars_schema_wasm_bg.wasm +0 -0
- package/web/mars_schema_wasm_bg.wasm.d.ts +7 -4
- package/fixtures/version/select-latest-constraint-ignores-lock/expected.json +0 -3
- /package/fixtures/version/{select-latest-constraint-ignores-lock → select-latest-constraint-keeps-lock}/input.json +0 -0
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Every id an alias accepts, in `resolveAlias`'s order.
|
|
6
|
+
*/
|
|
7
|
+
export function aliasCandidates(rows: any, alias: any): any;
|
|
8
|
+
|
|
4
9
|
/**
|
|
5
10
|
* What a package's files say is wrong with it, from `{files, context?, declaredDialect?,
|
|
6
11
|
* dependencies?}`: `prepare`, `links::package` and `mars_schema::check::check`, in that order.
|
|
@@ -25,6 +30,14 @@ export function emitValue(value: any, indent: number): string;
|
|
|
25
30
|
*/
|
|
26
31
|
export function inspect(argument: any): any;
|
|
27
32
|
|
|
33
|
+
/**
|
|
34
|
+
* The rows of the providers a project's `catalog_providers` names, the rows `mars models
|
|
35
|
+
* resolve` resolves over: `providers` is that list, `["*"]` allows every provider, and
|
|
36
|
+
* `undefined` is the list a project that sets none gets. A row's provider is its `provider_key`,
|
|
37
|
+
* else its `provider`. The rows come back as given.
|
|
38
|
+
*/
|
|
39
|
+
export function narrowRows(rows: any, providers: any): any;
|
|
40
|
+
|
|
28
41
|
/**
|
|
29
42
|
* Schema v1 packages for a selection: `{tree, source?, hint?, selection?}` to a `Normalized`.
|
|
30
43
|
* A remote marketplace plugin is fetched by the caller and normalized as its own tree, with
|
|
@@ -45,13 +58,13 @@ export function prepare(argument: any): any;
|
|
|
45
58
|
* `meridian-flow`): the native names per action, each rule's gap or coverage, and how the
|
|
46
59
|
* host handles `ask`. The same code `mars sync` lowers an agent's tools with.
|
|
47
60
|
*/
|
|
48
|
-
export function project(rules: any, host:
|
|
61
|
+
export function project(rules: any, host: any): any;
|
|
49
62
|
|
|
50
63
|
/**
|
|
51
64
|
* Read one schema file. `path` is package-relative and picks the reader: `mars.toml`,
|
|
52
65
|
* `agents/<slug>.md` or `skills/<slug>/SKILL.md`. Any other path throws.
|
|
53
66
|
*/
|
|
54
|
-
export function read(path:
|
|
67
|
+
export function read(path: any, text: any): any;
|
|
55
68
|
|
|
56
69
|
/**
|
|
57
70
|
* A `hook.toml`'s `[hooks]` as each of `targets` (roots such as `.claude`) takes it:
|
|
@@ -71,12 +84,17 @@ export function renderHooks(hook_toml: string, targets: string[], tokens: any):
|
|
|
71
84
|
export function resolve(input: any): any;
|
|
72
85
|
|
|
73
86
|
/**
|
|
74
|
-
* The model id an
|
|
75
|
-
*
|
|
76
|
-
|
|
77
|
-
|
|
87
|
+
* The model id an alias resolves to among models.dev rows, or `null`: a pinned `model` as
|
|
88
|
+
* written, else the best row an `auto` alias selects. The code `mars models resolve` runs.
|
|
89
|
+
*/
|
|
90
|
+
export function resolveAlias(rows: any, alias: any): any;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Resolve every alias of a parsed manifest's `models`, the way `mars models resolve` does. The
|
|
94
|
+
* manifest is a full reading, so its other keys are not checked; each alias is checked as
|
|
95
|
+
* `resolveAlias` checks its own.
|
|
78
96
|
*/
|
|
79
|
-
export function
|
|
97
|
+
export function resolveAliases(manifest: any, rows: any): any;
|
|
80
98
|
|
|
81
99
|
/**
|
|
82
100
|
* The level to send for `requested` on a model and a host: `{ level, moved }`. `requested` is
|
|
@@ -96,13 +114,13 @@ export function rewriteBlock(frontmatter: any): string;
|
|
|
96
114
|
* Whether `version` meets a dependency entry's `version` text (`null` or `"latest"` is any
|
|
97
115
|
* version; a branch or commit pin is met by none). A `version` that is not semver throws.
|
|
98
116
|
*/
|
|
99
|
-
export function satisfies(constraint:
|
|
117
|
+
export function satisfies(constraint: any, version: any): boolean;
|
|
100
118
|
|
|
101
119
|
/**
|
|
102
120
|
* Whether `version` meets a package's `requires-mars` / `requires-meridian`. A requirement that
|
|
103
121
|
* is not one, or a `version` that is not semver, throws.
|
|
104
122
|
*/
|
|
105
|
-
export function satisfiesRequirement(requirement:
|
|
123
|
+
export function satisfiesRequirement(requirement: any, version: any): boolean;
|
|
106
124
|
|
|
107
125
|
/**
|
|
108
126
|
* The items a graph installs: `{requests, packages, root?}` to a `SelectionResult`. `packages` is
|
|
@@ -120,8 +138,9 @@ export function selectItems(argument: any): any;
|
|
|
120
138
|
* `{pin} | {locked: true} | {tag} | {untagged: true}`. `available` is the repository's tags; one
|
|
121
139
|
* that is not a version (`nightly`) is ignored. `constraints` is every `[requester, version |
|
|
122
140
|
* null]` on the package, as the manifests spell them; `locked` is kept (`{locked: true}`, even
|
|
123
|
-
* if `available` no longer lists it) when it meets every range
|
|
124
|
-
*
|
|
141
|
+
* if `available` no longer lists it) when it meets every range, a `latest` or `null` constraint
|
|
142
|
+
* included (it allows any version, so a locked package stays until it is upgraded); otherwise
|
|
143
|
+
* the newest allowed version is chosen. A refusal throws with a `version.*` code.
|
|
125
144
|
*/
|
|
126
145
|
export function selectVersion(argument: any): any;
|
|
127
146
|
|
|
@@ -136,21 +155,24 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
136
155
|
|
|
137
156
|
export interface InitOutput {
|
|
138
157
|
readonly memory: WebAssembly.Memory;
|
|
158
|
+
readonly aliasCandidates: (a: number, b: number, c: number) => void;
|
|
139
159
|
readonly check: (a: number, b: number) => void;
|
|
140
160
|
readonly effortLevels: (a: number) => void;
|
|
141
161
|
readonly emitValue: (a: number, b: number, c: number) => void;
|
|
142
162
|
readonly inspect: (a: number, b: number) => void;
|
|
163
|
+
readonly narrowRows: (a: number, b: number, c: number) => void;
|
|
143
164
|
readonly normalize: (a: number, b: number) => void;
|
|
144
165
|
readonly prepare: (a: number, b: number) => void;
|
|
145
|
-
readonly project: (a: number, b: number, c: number
|
|
146
|
-
readonly read: (a: number, b: number, c: number
|
|
166
|
+
readonly project: (a: number, b: number, c: number) => void;
|
|
167
|
+
readonly read: (a: number, b: number, c: number) => void;
|
|
147
168
|
readonly renderHooks: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
148
169
|
readonly resolve: (a: number, b: number) => void;
|
|
149
170
|
readonly resolveAlias: (a: number, b: number, c: number) => void;
|
|
171
|
+
readonly resolveAliases: (a: number, b: number, c: number) => void;
|
|
150
172
|
readonly resolveEffort: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
151
173
|
readonly rewriteBlock: (a: number, b: number) => void;
|
|
152
|
-
readonly satisfies: (a: number, b: number, c: number
|
|
153
|
-
readonly satisfiesRequirement: (a: number, b: number, c: number
|
|
174
|
+
readonly satisfies: (a: number, b: number, c: number) => void;
|
|
175
|
+
readonly satisfiesRequirement: (a: number, b: number, c: number) => void;
|
|
154
176
|
readonly selectItems: (a: number, b: number) => void;
|
|
155
177
|
readonly selectVersion: (a: number, b: number) => void;
|
|
156
178
|
readonly version: (a: number) => void;
|
package/web/mars_schema_wasm.js
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
/* @ts-self-types="./mars_schema_wasm.d.ts" */
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Every id an alias accepts, in `resolveAlias`'s order.
|
|
5
|
+
* @param {any} rows
|
|
6
|
+
* @param {any} alias
|
|
7
|
+
* @returns {any}
|
|
8
|
+
*/
|
|
9
|
+
export function aliasCandidates(rows, alias) {
|
|
10
|
+
try {
|
|
11
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
12
|
+
wasm.aliasCandidates(retptr, addHeapObject(rows), addHeapObject(alias));
|
|
13
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
14
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
16
|
+
if (r2) {
|
|
17
|
+
throw takeObject(r1);
|
|
18
|
+
}
|
|
19
|
+
return takeObject(r0);
|
|
20
|
+
} finally {
|
|
21
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
3
25
|
/**
|
|
4
26
|
* What a package's files say is wrong with it, from `{files, context?, declaredDialect?,
|
|
5
27
|
* dependencies?}`: `prepare`, `links::package` and `mars_schema::check::check`, in that order.
|
|
@@ -97,6 +119,31 @@ export function inspect(argument) {
|
|
|
97
119
|
}
|
|
98
120
|
}
|
|
99
121
|
|
|
122
|
+
/**
|
|
123
|
+
* The rows of the providers a project's `catalog_providers` names, the rows `mars models
|
|
124
|
+
* resolve` resolves over: `providers` is that list, `["*"]` allows every provider, and
|
|
125
|
+
* `undefined` is the list a project that sets none gets. A row's provider is its `provider_key`,
|
|
126
|
+
* else its `provider`. The rows come back as given.
|
|
127
|
+
* @param {any} rows
|
|
128
|
+
* @param {any} providers
|
|
129
|
+
* @returns {any}
|
|
130
|
+
*/
|
|
131
|
+
export function narrowRows(rows, providers) {
|
|
132
|
+
try {
|
|
133
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
134
|
+
wasm.narrowRows(retptr, addHeapObject(rows), addHeapObject(providers));
|
|
135
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
136
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
137
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
138
|
+
if (r2) {
|
|
139
|
+
throw takeObject(r1);
|
|
140
|
+
}
|
|
141
|
+
return takeObject(r0);
|
|
142
|
+
} finally {
|
|
143
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
100
147
|
/**
|
|
101
148
|
* Schema v1 packages for a selection: `{tree, source?, hint?, selection?}` to a `Normalized`.
|
|
102
149
|
* A remote marketplace plugin is fetched by the caller and normalized as its own tree, with
|
|
@@ -149,15 +196,13 @@ export function prepare(argument) {
|
|
|
149
196
|
* `meridian-flow`): the native names per action, each rule's gap or coverage, and how the
|
|
150
197
|
* host handles `ask`. The same code `mars sync` lowers an agent's tools with.
|
|
151
198
|
* @param {any} rules
|
|
152
|
-
* @param {
|
|
199
|
+
* @param {any} host
|
|
153
200
|
* @returns {any}
|
|
154
201
|
*/
|
|
155
202
|
export function project(rules, host) {
|
|
156
203
|
try {
|
|
157
204
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
158
|
-
|
|
159
|
-
const len0 = WASM_VECTOR_LEN;
|
|
160
|
-
wasm.project(retptr, addHeapObject(rules), ptr0, len0);
|
|
205
|
+
wasm.project(retptr, addHeapObject(rules), addHeapObject(host));
|
|
161
206
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
162
207
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
163
208
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -173,18 +218,14 @@ export function project(rules, host) {
|
|
|
173
218
|
/**
|
|
174
219
|
* Read one schema file. `path` is package-relative and picks the reader: `mars.toml`,
|
|
175
220
|
* `agents/<slug>.md` or `skills/<slug>/SKILL.md`. Any other path throws.
|
|
176
|
-
* @param {
|
|
177
|
-
* @param {
|
|
221
|
+
* @param {any} path
|
|
222
|
+
* @param {any} text
|
|
178
223
|
* @returns {any}
|
|
179
224
|
*/
|
|
180
225
|
export function read(path, text) {
|
|
181
226
|
try {
|
|
182
227
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
183
|
-
|
|
184
|
-
const len0 = WASM_VECTOR_LEN;
|
|
185
|
-
const ptr1 = passStringToWasm0(text, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
186
|
-
const len1 = WASM_VECTOR_LEN;
|
|
187
|
-
wasm.read(retptr, ptr0, len0, ptr1, len1);
|
|
228
|
+
wasm.read(retptr, addHeapObject(path), addHeapObject(text));
|
|
188
229
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
189
230
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
190
231
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -253,18 +294,40 @@ export function resolve(input) {
|
|
|
253
294
|
}
|
|
254
295
|
|
|
255
296
|
/**
|
|
256
|
-
* The model id an
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
*
|
|
297
|
+
* The model id an alias resolves to among models.dev rows, or `null`: a pinned `model` as
|
|
298
|
+
* written, else the best row an `auto` alias selects. The code `mars models resolve` runs.
|
|
299
|
+
* @param {any} rows
|
|
300
|
+
* @param {any} alias
|
|
301
|
+
* @returns {any}
|
|
302
|
+
*/
|
|
303
|
+
export function resolveAlias(rows, alias) {
|
|
304
|
+
try {
|
|
305
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
306
|
+
wasm.resolveAlias(retptr, addHeapObject(rows), addHeapObject(alias));
|
|
307
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
308
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
309
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
310
|
+
if (r2) {
|
|
311
|
+
throw takeObject(r1);
|
|
312
|
+
}
|
|
313
|
+
return takeObject(r0);
|
|
314
|
+
} finally {
|
|
315
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Resolve every alias of a parsed manifest's `models`, the way `mars models resolve` does. The
|
|
321
|
+
* manifest is a full reading, so its other keys are not checked; each alias is checked as
|
|
322
|
+
* `resolveAlias` checks its own.
|
|
323
|
+
* @param {any} manifest
|
|
260
324
|
* @param {any} rows
|
|
261
|
-
* @param {any} options
|
|
262
325
|
* @returns {any}
|
|
263
326
|
*/
|
|
264
|
-
export function
|
|
327
|
+
export function resolveAliases(manifest, rows) {
|
|
265
328
|
try {
|
|
266
329
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
267
|
-
wasm.
|
|
330
|
+
wasm.resolveAliases(retptr, addHeapObject(manifest), addHeapObject(rows));
|
|
268
331
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
269
332
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
270
333
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -341,18 +404,14 @@ export function rewriteBlock(frontmatter) {
|
|
|
341
404
|
/**
|
|
342
405
|
* Whether `version` meets a dependency entry's `version` text (`null` or `"latest"` is any
|
|
343
406
|
* version; a branch or commit pin is met by none). A `version` that is not semver throws.
|
|
344
|
-
* @param {
|
|
345
|
-
* @param {
|
|
407
|
+
* @param {any} constraint
|
|
408
|
+
* @param {any} version
|
|
346
409
|
* @returns {boolean}
|
|
347
410
|
*/
|
|
348
411
|
export function satisfies(constraint, version) {
|
|
349
412
|
try {
|
|
350
413
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
351
|
-
|
|
352
|
-
var len0 = WASM_VECTOR_LEN;
|
|
353
|
-
const ptr1 = passStringToWasm0(version, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
354
|
-
const len1 = WASM_VECTOR_LEN;
|
|
355
|
-
wasm.satisfies(retptr, ptr0, len0, ptr1, len1);
|
|
414
|
+
wasm.satisfies(retptr, addHeapObject(constraint), addHeapObject(version));
|
|
356
415
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
357
416
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
358
417
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -368,18 +427,14 @@ export function satisfies(constraint, version) {
|
|
|
368
427
|
/**
|
|
369
428
|
* Whether `version` meets a package's `requires-mars` / `requires-meridian`. A requirement that
|
|
370
429
|
* is not one, or a `version` that is not semver, throws.
|
|
371
|
-
* @param {
|
|
372
|
-
* @param {
|
|
430
|
+
* @param {any} requirement
|
|
431
|
+
* @param {any} version
|
|
373
432
|
* @returns {boolean}
|
|
374
433
|
*/
|
|
375
434
|
export function satisfiesRequirement(requirement, version) {
|
|
376
435
|
try {
|
|
377
436
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
378
|
-
|
|
379
|
-
const len0 = WASM_VECTOR_LEN;
|
|
380
|
-
const ptr1 = passStringToWasm0(version, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
381
|
-
const len1 = WASM_VECTOR_LEN;
|
|
382
|
-
wasm.satisfiesRequirement(retptr, ptr0, len0, ptr1, len1);
|
|
437
|
+
wasm.satisfiesRequirement(retptr, addHeapObject(requirement), addHeapObject(version));
|
|
383
438
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
384
439
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
385
440
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -424,8 +479,9 @@ export function selectItems(argument) {
|
|
|
424
479
|
* `{pin} | {locked: true} | {tag} | {untagged: true}`. `available` is the repository's tags; one
|
|
425
480
|
* that is not a version (`nightly`) is ignored. `constraints` is every `[requester, version |
|
|
426
481
|
* null]` on the package, as the manifests spell them; `locked` is kept (`{locked: true}`, even
|
|
427
|
-
* if `available` no longer lists it) when it meets every range
|
|
428
|
-
*
|
|
482
|
+
* if `available` no longer lists it) when it meets every range, a `latest` or `null` constraint
|
|
483
|
+
* included (it allows any version, so a locked package stays until it is upgraded); otherwise
|
|
484
|
+
* the newest allowed version is chosen. A refusal throws with a `version.*` code.
|
|
429
485
|
* @param {any} argument
|
|
430
486
|
* @returns {any}
|
|
431
487
|
*/
|
|
@@ -713,6 +769,10 @@ function __wbg_get_imports() {
|
|
|
713
769
|
__wbg_prototypesetcall_3249fc62a0fafa30: function(arg0, arg1, arg2) {
|
|
714
770
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
715
771
|
},
|
|
772
|
+
__wbg_push_a6822215aa43e71c: function(arg0, arg1) {
|
|
773
|
+
const ret = getObject(arg0).push(getObject(arg1));
|
|
774
|
+
return ret;
|
|
775
|
+
},
|
|
716
776
|
__wbg_set_52b1e1eb5bed906a: function(arg0, arg1, arg2) {
|
|
717
777
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
718
778
|
return addHeapObject(ret);
|
|
Binary file
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const aliasCandidates: (a: number, b: number, c: number) => void;
|
|
4
5
|
export const check: (a: number, b: number) => void;
|
|
5
6
|
export const effortLevels: (a: number) => void;
|
|
6
7
|
export const emitValue: (a: number, b: number, c: number) => void;
|
|
7
8
|
export const inspect: (a: number, b: number) => void;
|
|
9
|
+
export const narrowRows: (a: number, b: number, c: number) => void;
|
|
8
10
|
export const normalize: (a: number, b: number) => void;
|
|
9
11
|
export const prepare: (a: number, b: number) => void;
|
|
10
|
-
export const project: (a: number, b: number, c: number
|
|
11
|
-
export const read: (a: number, b: number, c: number
|
|
12
|
+
export const project: (a: number, b: number, c: number) => void;
|
|
13
|
+
export const read: (a: number, b: number, c: number) => void;
|
|
12
14
|
export const renderHooks: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
13
15
|
export const resolve: (a: number, b: number) => void;
|
|
14
16
|
export const resolveAlias: (a: number, b: number, c: number) => void;
|
|
17
|
+
export const resolveAliases: (a: number, b: number, c: number) => void;
|
|
15
18
|
export const resolveEffort: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
16
19
|
export const rewriteBlock: (a: number, b: number) => void;
|
|
17
|
-
export const satisfies: (a: number, b: number, c: number
|
|
18
|
-
export const satisfiesRequirement: (a: number, b: number, c: number
|
|
20
|
+
export const satisfies: (a: number, b: number, c: number) => void;
|
|
21
|
+
export const satisfiesRequirement: (a: number, b: number, c: number) => void;
|
|
19
22
|
export const selectItems: (a: number, b: number) => void;
|
|
20
23
|
export const selectVersion: (a: number, b: number) => void;
|
|
21
24
|
export const version: (a: number) => void;
|
|
File without changes
|