@openmixer/plugin-qualify 0.12.0 → 0.13.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 +1 -1
- package/dist/host-profiles.d.ts +1 -2
- package/dist/host-profiles.js +12 -2
- package/dist/host-profiles.js.map +1 -1
- package/dist/hosting-codes.d.ts +14 -68
- package/dist/hosting-codes.generated.d.ts +76 -0
- package/dist/hosting-codes.generated.js +84 -0
- package/dist/hosting-codes.generated.js.map +1 -0
- package/dist/hosting-codes.js +12 -77
- package/dist/hosting-codes.js.map +1 -1
- package/dist/hosting-suitability.d.ts +1 -2
- package/dist/hosting-suitability.js +4 -13
- package/dist/hosting-suitability.js.map +1 -1
- package/dist/measurement/cli.d.ts +1 -1
- package/dist/measurement/cli.js +1 -1
- package/dist/measurement/cli.js.map +1 -1
- package/dist/measurement/format.d.ts +1 -1
- package/dist/measurement/vocabulary.d.ts +30 -22
- package/dist/measurement/vocabulary.js +84 -163
- package/dist/measurement/vocabulary.js.map +1 -1
- package/fixtures/clap-scan/fake.json +109 -7
- package/fixtures/probe-output/success-msi.json +11 -0
- package/package.json +4 -4
- package/src/host-profiles.ts +12 -2
- package/src/hosting-codes.generated.ts +84 -0
- package/src/hosting-codes.ts +16 -77
- package/src/hosting-suitability.ts +4 -14
- package/src/measurement/cli.ts +1 -1
- package/src/measurement/format.ts +1 -1
- package/src/measurement/vocabulary.ts +135 -167
- package/tools/clap-core-tsdir.d.mts +16 -0
- package/tools/clap-core-tsdir.mjs +93 -0
- package/tools/gen-hosting-codes.d.mts +8 -0
- package/tools/gen-hosting-codes.mjs +92 -0
package/README.md
CHANGED
|
@@ -181,7 +181,7 @@ names the options it ran under, `featureOptions`:
|
|
|
181
181
|
|
|
182
182
|
| flag | what it sets | default |
|
|
183
183
|
| --- | --- | --- |
|
|
184
|
-
| `--features LIST` | the kinds offered: `map`, `unmap`, `options`, `bounded`, `worker`, `default-state`, `log` (empty: none) | all but `default-state` |
|
|
184
|
+
| `--features LIST` | the kinds offered: `map`, `unmap`, `options`, `bounded`, `worker`, `default-state`, `log`, `rtmempool` (empty: none) | all but `default-state` |
|
|
185
185
|
| `--strict` / `--no-strict` | refuse a plugin requiring a feature not offered (the record's `refusedFeature` names it), or hand it to its own instantiate without it | `--no-strict` |
|
|
186
186
|
| `--block-declares LIST` | the buf-size declarations made when `bounded` is offered: `bounded`, `fixed`, `pow2` (empty: none) | `bounded` |
|
|
187
187
|
| `--block-min N` | `bufsz:minBlockLength`; 0 is the run's block | 1 |
|
package/dist/host-profiles.d.ts
CHANGED
|
@@ -16,8 +16,7 @@ export declare const OMX_INPROCESS_FEATURES: readonly string[];
|
|
|
16
16
|
* than on the desk. The list's home is the CLAP library — libomx-clap-core's own
|
|
17
17
|
* `clap_host_extensions.h`, what its host object offers — and this is its mirror, held equal to the
|
|
18
18
|
* header at the pinned omx-clap-host (by the console's conformance test), so the verdict never
|
|
19
|
-
* promises more or less than the host provides. Nothing else: no `gui
|
|
20
|
-
* `posix-fd-support`, no `thread-pool`.
|
|
19
|
+
* promises more or less than the host provides. Nothing else: no `gui`.
|
|
21
20
|
*/
|
|
22
21
|
export declare const OMX_CLAP_HOST_EXTENSIONS: readonly string[];
|
|
23
22
|
/**
|
package/dist/host-profiles.js
CHANGED
|
@@ -33,8 +33,7 @@ export const OMX_INPROCESS_FEATURES = [
|
|
|
33
33
|
* than on the desk. The list's home is the CLAP library — libomx-clap-core's own
|
|
34
34
|
* `clap_host_extensions.h`, what its host object offers — and this is its mirror, held equal to the
|
|
35
35
|
* header at the pinned omx-clap-host (by the console's conformance test), so the verdict never
|
|
36
|
-
* promises more or less than the host provides. Nothing else: no `gui
|
|
37
|
-
* `posix-fd-support`, no `thread-pool`.
|
|
36
|
+
* promises more or less than the host provides. Nothing else: no `gui`.
|
|
38
37
|
*/
|
|
39
38
|
export const OMX_CLAP_HOST_EXTENSIONS = [
|
|
40
39
|
"clap.log",
|
|
@@ -43,6 +42,17 @@ export const OMX_CLAP_HOST_EXTENSIONS = [
|
|
|
43
42
|
"clap.params",
|
|
44
43
|
"clap.audio-ports",
|
|
45
44
|
"clap.state",
|
|
45
|
+
"clap.note-ports",
|
|
46
|
+
"clap.note-name",
|
|
47
|
+
"clap.voice-info",
|
|
48
|
+
"clap.event-registry",
|
|
49
|
+
"clap.timer-support",
|
|
50
|
+
"clap.posix-fd-support",
|
|
51
|
+
"clap.thread-pool",
|
|
52
|
+
"clap.tail",
|
|
53
|
+
"clap.surround/4",
|
|
54
|
+
"clap.ambisonic/3",
|
|
55
|
+
"clap.audio-ports-config",
|
|
46
56
|
];
|
|
47
57
|
/**
|
|
48
58
|
* The three host extensions omx-clap-host turns on beyond the library's own (omx-clap-core
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-profiles.js","sourceRoot":"","sources":["../src/host-profiles.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,sDAAsD;AACtD;;;;GAIG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,uFAAuF;AACvF,kGAAkG;AAClG,OAAO,EACL,eAAe,EACf,qBAAqB,GAGtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,eAAe,EAA0C,MAAM,yBAAyB,CAAC;AAGlG;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAsB;IACvD,mCAAmC;IACnC,qCAAqC;IACrC,0CAA0C;IAC1C,sDAAsD;IACtD,0CAA0C;IAC1C,iDAAiD;IACjD,kCAAkC;CACnC,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"host-profiles.js","sourceRoot":"","sources":["../src/host-profiles.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,sDAAsD;AACtD;;;;GAIG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,uFAAuF;AACvF,kGAAkG;AAClG,OAAO,EACL,eAAe,EACf,qBAAqB,GAGtB,MAAM,6BAA6B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C,CAAC;IACrF,WAAW,EAAE,IAAI;IACjB,IAAI,EAAE,YAAY,CAAC,eAAe,CAAC;IACnC,OAAO,EAAE,eAAe;IACxB,SAAS,EAAE,gBAAgB;CAC5B,CAAC;AAEF,2CAA2C;AAC3C,MAAM,CAAC,MAAM,aAAa,GAA2B,CAAC,yBAAyB,EAAE,YAAY,EAAE,gBAAgB,EAAE,qBAAqB,CAAC,CAAC;AAExI,+CAA+C;AAC/C,MAAM,UAAU,kBAAkB,CAAC,EAAU;IAC3C,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AAChD,CAAC"}
|
package/dist/hosting-codes.d.ts
CHANGED
|
@@ -1,71 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The hosting verdict's message codes. Codes, never prose: the
|
|
3
|
-
*
|
|
2
|
+
* The hosting verdict's message codes. Codes, never prose: the surface renders the operator's
|
|
3
|
+
* locale.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* omx-clap-core declares every hosting code: one `HOSTING_<DIMENSION>_CODES` table per dimension,
|
|
6
|
+
* in the TypeScript modules its package installs under `pkg-config --variable=tsdir omx-clap-core`
|
|
7
|
+
* (BUILDING.md). {@link HOSTING_CODE} is those tables flattened into one `key: code` map, written
|
|
8
|
+
* as plain data into `hosting-codes.generated.ts` by `tools/gen-hosting-codes.mjs` at build time:
|
|
9
|
+
* a code omx-clap-core does not declare cannot be named here, and this module reads no file and
|
|
10
|
+
* imports no `node:` module, so every public subpath that reaches it bundles for a browser.
|
|
11
|
+
* `src/contract-vocabulary-conformance.test.ts` holds the generated map to omx-clap-core's real
|
|
12
|
+
* modules, either way.
|
|
9
13
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
readonly stabilityBelowFloor: "hosting.stability.cycles-below-floor";
|
|
15
|
-
readonly stabilityUnsoaked: "hosting.stability.unsoaked";
|
|
16
|
-
readonly stabilitySoakFailedAtRate: "hosting.stability.soak-failed-at-rate";
|
|
17
|
-
readonly stabilityUnmeasured: "hosting.stability.unmeasured";
|
|
18
|
-
readonly stabilityCrashUnattributed: "hosting.stability.crash-unattributed";
|
|
19
|
-
readonly stabilitySpawnsThreads: "hosting.stability.spawns-threads";
|
|
20
|
-
readonly stabilityLinksGuiToolkit: "hosting.stability.links-gui-toolkit";
|
|
21
|
-
readonly rtSafetyClean: "hosting.rt-safety.clean-under-sweep";
|
|
22
|
-
readonly rtSafetyViolations: "hosting.rt-safety.violations-in-run";
|
|
23
|
-
readonly rtSafetyUnmeasured: "hosting.rt-safety.unmeasured";
|
|
24
|
-
readonly rtSafetyNotReproducible: "hosting.rt-safety.not-reproducible";
|
|
25
|
-
readonly rtSafetyNotesClean: "hosting.rt-safety.clean-under-notes";
|
|
26
|
-
readonly rtSafetyNotesViolations: "hosting.rt-safety.violations-under-notes";
|
|
27
|
-
readonly rtSafetyNotesUnmeasured: "hosting.rt-safety.notes-unmeasured";
|
|
28
|
-
readonly featuresProvided: "hosting.features.all-provided";
|
|
29
|
-
readonly featuresMissing: "hosting.features.required-not-provided";
|
|
30
|
-
readonly featuresDisqualifying: "hosting.features.host-not-provided";
|
|
31
|
-
readonly featuresCv: "hosting.features.cv-ports";
|
|
32
|
-
readonly featuresMidiIn: "hosting.features.midi-in-fed-empty";
|
|
33
|
-
readonly featuresUnscanned: "hosting.features.scan-predates-field";
|
|
34
|
-
readonly costWithinCeiling: "hosting.cost.within-ceiling";
|
|
35
|
-
readonly costAboveCeiling: "hosting.cost.above-ceiling";
|
|
36
|
-
readonly costSpiky: "hosting.cost.spiky-tail";
|
|
37
|
-
readonly costUnmeasured: "hosting.cost.unmeasured-at-rate-and-quantum";
|
|
38
|
-
readonly costFieldsMissing: "hosting.cost.fields-missing";
|
|
39
|
-
readonly latencyResolved: "hosting.latency.resolved";
|
|
40
|
-
readonly latencyUnmeasured: "hosting.latency.unmeasured";
|
|
41
|
-
readonly latencyNonconforming: "hosting.latency.nonconforming";
|
|
42
|
-
readonly latencyParameterDependent: "hosting.latency.parameter-dependent";
|
|
43
|
-
readonly topologyMatched: "hosting.topology.matched";
|
|
44
|
-
readonly topologyNoAudioInput: "hosting.topology.no-audio-input";
|
|
45
|
-
readonly topologyNoAudioOutput: "hosting.topology.no-audio-output";
|
|
46
|
-
readonly topologyExtraInputs: "hosting.topology.extra-inputs-fed-silence";
|
|
47
|
-
readonly topologyInstrument: "hosting.topology.instrument";
|
|
48
|
-
readonly topologyWiderThanStrip: "hosting.topology.wider-than-strip";
|
|
49
|
-
readonly clapLatencyMismatch: "hosting.clap.latency-mismatch";
|
|
50
|
-
readonly clapNotAudioEffect: "hosting.clap.not-audio-effect";
|
|
51
|
-
readonly clapHeadlessFailed: "hosting.clap.headless-failed";
|
|
52
|
-
readonly clapNoteInput: "hosting.clap.note-input";
|
|
53
|
-
readonly clapThreadViolation: "hosting.clap.thread-violation";
|
|
54
|
-
readonly clapProcessError: "hosting.clap.process-error";
|
|
55
|
-
readonly clapUnqualified: "hosting.clap.unqualified";
|
|
56
|
-
readonly clapFormatNotHosted: "hosting.clap.format-not-hosted";
|
|
57
|
-
readonly clapExtensionsNotCovered: "hosting.clap.extensions-not-covered";
|
|
58
|
-
readonly outputNonFinite: "hosting.output.non-finite";
|
|
59
|
-
readonly workerNonconforming: "hosting.worker.nonconforming";
|
|
60
|
-
readonly integrityUnpinned: "hosting.integrity.unpinned";
|
|
61
|
-
readonly integrityBinaryMismatch: "hosting.integrity.binary-mismatch";
|
|
62
|
-
readonly integrityLayoutMismatch: "hosting.integrity.layout-mismatch";
|
|
63
|
-
readonly overrideIsolated: "hosting.override.curator-isolated";
|
|
64
|
-
readonly hostProvenanceDiffers: "hosting.provenance.host-differs";
|
|
65
|
-
readonly sweepControlDidNotFire: "hosting.provenance.sweep-control-did-not-fire";
|
|
66
|
-
readonly disabled: "hosting.disabled";
|
|
67
|
-
readonly unjudged: "hosting.unjudged";
|
|
68
|
-
readonly noRealisation: "hosting.no-realisation";
|
|
69
|
-
readonly realisedInProcess: "hosting.realised.in-process";
|
|
70
|
-
readonly linked: "hosting.linked";
|
|
71
|
-
};
|
|
14
|
+
import { HOSTING_CODE } from "./hosting-codes.generated.js";
|
|
15
|
+
export { HOSTING_CODE };
|
|
16
|
+
/** {@link HOSTING_CODE}'s type: each key's literal code. */
|
|
17
|
+
export type HostingCodeTable = typeof HOSTING_CODE;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/** omx-clap-core's hosting codes, by key: every `HOSTING_<DIMENSION>_CODES` table, flattened. */
|
|
2
|
+
export declare const HOSTING_CODE: Readonly<{
|
|
3
|
+
readonly clapExtensionsNotCovered: "hosting.clap.extensions-not-covered";
|
|
4
|
+
readonly clapFormatNotHosted: "hosting.clap.format-not-hosted";
|
|
5
|
+
readonly clapHeadlessFailed: "hosting.clap.headless-failed";
|
|
6
|
+
readonly clapLatencyMismatch: "hosting.clap.latency-mismatch";
|
|
7
|
+
readonly clapNoteInput: "hosting.clap.note-input";
|
|
8
|
+
readonly clapProcessError: "hosting.clap.process-error";
|
|
9
|
+
readonly clapThreadViolation: "hosting.clap.thread-violation";
|
|
10
|
+
readonly clapUnqualified: "hosting.clap.unqualified";
|
|
11
|
+
readonly costAboveCeiling: "hosting.cost.above-ceiling";
|
|
12
|
+
readonly costFieldsMissing: "hosting.cost.fields-missing";
|
|
13
|
+
readonly costSpiky: "hosting.cost.spiky-tail";
|
|
14
|
+
readonly costUnmeasured: "hosting.cost.unmeasured-at-rate-and-quantum";
|
|
15
|
+
readonly costWithinCeiling: "hosting.cost.within-ceiling";
|
|
16
|
+
readonly featuresAtomInUnfed: "hosting.features.atom-in-unfed";
|
|
17
|
+
readonly featuresDisqualifying: "hosting.features.host-not-provided";
|
|
18
|
+
readonly featuresMidiIn: "hosting.features.midi-in-fed-empty";
|
|
19
|
+
readonly featuresMissing: "hosting.features.missing";
|
|
20
|
+
readonly featuresPortsUnreadable: "hosting.features.ports-unreadable";
|
|
21
|
+
readonly featuresProvided: "hosting.features.all-provided";
|
|
22
|
+
readonly featuresUnscanned: "hosting.features.scan-predates-field";
|
|
23
|
+
readonly latencyNonconforming: "hosting.latency.nonconforming";
|
|
24
|
+
readonly latencyParameterDependent: "hosting.latency.parameter-dependent";
|
|
25
|
+
readonly latencyResolved: "hosting.latency.resolved";
|
|
26
|
+
readonly latencyUnmeasured: "hosting.latency.unmeasured";
|
|
27
|
+
readonly outputNonFinite: "hosting.output.non-finite";
|
|
28
|
+
readonly overrideIsolated: "hosting.override.curator-isolated";
|
|
29
|
+
readonly patchBusy: "hosting.patch.busy";
|
|
30
|
+
readonly patchNotWritable: "hosting.patch.not-writable";
|
|
31
|
+
readonly patchTooLarge: "hosting.patch.too-large";
|
|
32
|
+
readonly presetNotFound: "hosting.preset.not-found";
|
|
33
|
+
readonly hostProvenanceDiffers: "hosting.provenance.host-differs";
|
|
34
|
+
readonly sweepControlDidNotFire: "hosting.provenance.sweep-control-did-not-fire";
|
|
35
|
+
readonly disabled: "hosting.disabled";
|
|
36
|
+
readonly linked: "hosting.linked";
|
|
37
|
+
readonly noRealisation: "hosting.no-realisation";
|
|
38
|
+
readonly realisedInProcess: "hosting.realised.in-process";
|
|
39
|
+
readonly unjudged: "hosting.unjudged";
|
|
40
|
+
readonly rtSafetyClean: "hosting.rt-safety.clean-under-sweep";
|
|
41
|
+
readonly rtSafetyNotReproducible: "hosting.rt-safety.not-reproducible";
|
|
42
|
+
readonly rtSafetyNotesClean: "hosting.rt-safety.clean-under-notes";
|
|
43
|
+
readonly rtSafetyNotesUnmeasured: "hosting.rt-safety.notes-unmeasured";
|
|
44
|
+
readonly rtSafetyNotesViolations: "hosting.rt-safety.violations-under-notes";
|
|
45
|
+
readonly rtSafetyUnmeasured: "hosting.rt-safety.unmeasured";
|
|
46
|
+
readonly rtSafetyViolations: "hosting.rt-safety.violations-in-run";
|
|
47
|
+
readonly stabilityBelowFloor: "hosting.stability.cycles-below-floor";
|
|
48
|
+
readonly stabilityCrashUnattributed: "hosting.stability.crash-unattributed";
|
|
49
|
+
readonly stabilityCrashedAttributed: "hosting.stability.crashed-attributed-plugin";
|
|
50
|
+
readonly stabilityCrashedLive: "hosting.stability.crashed-live-on-this-rig";
|
|
51
|
+
readonly stabilityLinksGuiToolkit: "hosting.stability.links-gui-toolkit";
|
|
52
|
+
readonly stabilitySoakFailedAtRate: "hosting.stability.soak-failed-at-rate";
|
|
53
|
+
readonly stabilitySoaked: "hosting.stability.soaked";
|
|
54
|
+
readonly stabilitySpawnsThreads: "hosting.stability.spawns-threads";
|
|
55
|
+
readonly stabilityUnmeasured: "hosting.stability.unmeasured";
|
|
56
|
+
readonly stabilityUnsoaked: "hosting.stability.unsoaked";
|
|
57
|
+
readonly stateNotACopy: "hosting.state.not-a-copy";
|
|
58
|
+
readonly statePathOnAudio: "hosting.state.path-on-audio";
|
|
59
|
+
readonly statePathOutside: "hosting.state.path-outside";
|
|
60
|
+
readonly statePathSymlink: "hosting.state.path-symlink";
|
|
61
|
+
readonly statePathTooLong: "hosting.state.path-too-long";
|
|
62
|
+
readonly statePathUnmakeable: "hosting.state.path-unmakeable";
|
|
63
|
+
readonly stateUnreadable: "hosting.state.unreadable";
|
|
64
|
+
readonly topologyAmbisonicConfig: "hosting.topology.ambisonic-config";
|
|
65
|
+
readonly topologyChannelMapUnknown: "hosting.topology.channel-map-unknown";
|
|
66
|
+
readonly topologyInstrument: "hosting.topology.instrument";
|
|
67
|
+
readonly topologyMatched: "hosting.topology.matched";
|
|
68
|
+
readonly topologyNoAudioInput: "hosting.topology.no-audio-input";
|
|
69
|
+
readonly topologyNoAudioOutput: "hosting.topology.no-audio-output";
|
|
70
|
+
readonly topologyPortTooWide: "hosting.topology.port-too-wide";
|
|
71
|
+
readonly topologyPortWithoutChannels: "hosting.topology.port-without-channels";
|
|
72
|
+
readonly topologyTooManyPorts: "hosting.topology.too-many-ports";
|
|
73
|
+
readonly topologyWiderThanStrip: "hosting.topology.wider-than-strip";
|
|
74
|
+
readonly workerNonconforming: "hosting.worker.nonconforming";
|
|
75
|
+
readonly idleHoldRefused: "hosting.idle.hold-refused";
|
|
76
|
+
}>;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
+
// Copyright (C) 2026 Pau Aliagas <linuxnow@gmail.com>
|
|
3
|
+
//
|
|
4
|
+
// GENERATED by tools/gen-hosting-codes.mjs from omx-clap-core's hosting tables — do not hand-edit.
|
|
5
|
+
//
|
|
6
|
+
// Regenerate: node tools/gen-hosting-codes.mjs --write
|
|
7
|
+
// Verify: node tools/gen-hosting-codes.mjs --check
|
|
8
|
+
/** omx-clap-core's hosting codes, by key: every `HOSTING_<DIMENSION>_CODES` table, flattened. */
|
|
9
|
+
export const HOSTING_CODE = Object.freeze({
|
|
10
|
+
"clapExtensionsNotCovered": "hosting.clap.extensions-not-covered",
|
|
11
|
+
"clapFormatNotHosted": "hosting.clap.format-not-hosted",
|
|
12
|
+
"clapHeadlessFailed": "hosting.clap.headless-failed",
|
|
13
|
+
"clapLatencyMismatch": "hosting.clap.latency-mismatch",
|
|
14
|
+
"clapNoteInput": "hosting.clap.note-input",
|
|
15
|
+
"clapProcessError": "hosting.clap.process-error",
|
|
16
|
+
"clapThreadViolation": "hosting.clap.thread-violation",
|
|
17
|
+
"clapUnqualified": "hosting.clap.unqualified",
|
|
18
|
+
"costAboveCeiling": "hosting.cost.above-ceiling",
|
|
19
|
+
"costFieldsMissing": "hosting.cost.fields-missing",
|
|
20
|
+
"costSpiky": "hosting.cost.spiky-tail",
|
|
21
|
+
"costUnmeasured": "hosting.cost.unmeasured-at-rate-and-quantum",
|
|
22
|
+
"costWithinCeiling": "hosting.cost.within-ceiling",
|
|
23
|
+
"featuresAtomInUnfed": "hosting.features.atom-in-unfed",
|
|
24
|
+
"featuresDisqualifying": "hosting.features.host-not-provided",
|
|
25
|
+
"featuresMidiIn": "hosting.features.midi-in-fed-empty",
|
|
26
|
+
"featuresMissing": "hosting.features.missing",
|
|
27
|
+
"featuresPortsUnreadable": "hosting.features.ports-unreadable",
|
|
28
|
+
"featuresProvided": "hosting.features.all-provided",
|
|
29
|
+
"featuresUnscanned": "hosting.features.scan-predates-field",
|
|
30
|
+
"latencyNonconforming": "hosting.latency.nonconforming",
|
|
31
|
+
"latencyParameterDependent": "hosting.latency.parameter-dependent",
|
|
32
|
+
"latencyResolved": "hosting.latency.resolved",
|
|
33
|
+
"latencyUnmeasured": "hosting.latency.unmeasured",
|
|
34
|
+
"outputNonFinite": "hosting.output.non-finite",
|
|
35
|
+
"overrideIsolated": "hosting.override.curator-isolated",
|
|
36
|
+
"patchBusy": "hosting.patch.busy",
|
|
37
|
+
"patchNotWritable": "hosting.patch.not-writable",
|
|
38
|
+
"patchTooLarge": "hosting.patch.too-large",
|
|
39
|
+
"presetNotFound": "hosting.preset.not-found",
|
|
40
|
+
"hostProvenanceDiffers": "hosting.provenance.host-differs",
|
|
41
|
+
"sweepControlDidNotFire": "hosting.provenance.sweep-control-did-not-fire",
|
|
42
|
+
"disabled": "hosting.disabled",
|
|
43
|
+
"linked": "hosting.linked",
|
|
44
|
+
"noRealisation": "hosting.no-realisation",
|
|
45
|
+
"realisedInProcess": "hosting.realised.in-process",
|
|
46
|
+
"unjudged": "hosting.unjudged",
|
|
47
|
+
"rtSafetyClean": "hosting.rt-safety.clean-under-sweep",
|
|
48
|
+
"rtSafetyNotReproducible": "hosting.rt-safety.not-reproducible",
|
|
49
|
+
"rtSafetyNotesClean": "hosting.rt-safety.clean-under-notes",
|
|
50
|
+
"rtSafetyNotesUnmeasured": "hosting.rt-safety.notes-unmeasured",
|
|
51
|
+
"rtSafetyNotesViolations": "hosting.rt-safety.violations-under-notes",
|
|
52
|
+
"rtSafetyUnmeasured": "hosting.rt-safety.unmeasured",
|
|
53
|
+
"rtSafetyViolations": "hosting.rt-safety.violations-in-run",
|
|
54
|
+
"stabilityBelowFloor": "hosting.stability.cycles-below-floor",
|
|
55
|
+
"stabilityCrashUnattributed": "hosting.stability.crash-unattributed",
|
|
56
|
+
"stabilityCrashedAttributed": "hosting.stability.crashed-attributed-plugin",
|
|
57
|
+
"stabilityCrashedLive": "hosting.stability.crashed-live-on-this-rig",
|
|
58
|
+
"stabilityLinksGuiToolkit": "hosting.stability.links-gui-toolkit",
|
|
59
|
+
"stabilitySoakFailedAtRate": "hosting.stability.soak-failed-at-rate",
|
|
60
|
+
"stabilitySoaked": "hosting.stability.soaked",
|
|
61
|
+
"stabilitySpawnsThreads": "hosting.stability.spawns-threads",
|
|
62
|
+
"stabilityUnmeasured": "hosting.stability.unmeasured",
|
|
63
|
+
"stabilityUnsoaked": "hosting.stability.unsoaked",
|
|
64
|
+
"stateNotACopy": "hosting.state.not-a-copy",
|
|
65
|
+
"statePathOnAudio": "hosting.state.path-on-audio",
|
|
66
|
+
"statePathOutside": "hosting.state.path-outside",
|
|
67
|
+
"statePathSymlink": "hosting.state.path-symlink",
|
|
68
|
+
"statePathTooLong": "hosting.state.path-too-long",
|
|
69
|
+
"statePathUnmakeable": "hosting.state.path-unmakeable",
|
|
70
|
+
"stateUnreadable": "hosting.state.unreadable",
|
|
71
|
+
"topologyAmbisonicConfig": "hosting.topology.ambisonic-config",
|
|
72
|
+
"topologyChannelMapUnknown": "hosting.topology.channel-map-unknown",
|
|
73
|
+
"topologyInstrument": "hosting.topology.instrument",
|
|
74
|
+
"topologyMatched": "hosting.topology.matched",
|
|
75
|
+
"topologyNoAudioInput": "hosting.topology.no-audio-input",
|
|
76
|
+
"topologyNoAudioOutput": "hosting.topology.no-audio-output",
|
|
77
|
+
"topologyPortTooWide": "hosting.topology.port-too-wide",
|
|
78
|
+
"topologyPortWithoutChannels": "hosting.topology.port-without-channels",
|
|
79
|
+
"topologyTooManyPorts": "hosting.topology.too-many-ports",
|
|
80
|
+
"topologyWiderThanStrip": "hosting.topology.wider-than-strip",
|
|
81
|
+
"workerNonconforming": "hosting.worker.nonconforming",
|
|
82
|
+
"idleHoldRefused": "hosting.idle.hold-refused",
|
|
83
|
+
});
|
|
84
|
+
//# sourceMappingURL=hosting-codes.generated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hosting-codes.generated.js","sourceRoot":"","sources":["../src/hosting-codes.generated.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,sDAAsD;AACtD,EAAE;AACF,mGAAmG;AACnG,EAAE;AACF,uDAAuD;AACvD,uDAAuD;AAEvD,iGAAiG;AACjG,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC;IACxC,0BAA0B,EAAE,qCAAqC;IACjE,qBAAqB,EAAE,gCAAgC;IACvD,oBAAoB,EAAE,8BAA8B;IACpD,qBAAqB,EAAE,+BAA+B;IACtD,eAAe,EAAE,yBAAyB;IAC1C,kBAAkB,EAAE,4BAA4B;IAChD,qBAAqB,EAAE,+BAA+B;IACtD,iBAAiB,EAAE,0BAA0B;IAC7C,kBAAkB,EAAE,4BAA4B;IAChD,mBAAmB,EAAE,6BAA6B;IAClD,WAAW,EAAE,yBAAyB;IACtC,gBAAgB,EAAE,6CAA6C;IAC/D,mBAAmB,EAAE,6BAA6B;IAClD,qBAAqB,EAAE,gCAAgC;IACvD,uBAAuB,EAAE,oCAAoC;IAC7D,gBAAgB,EAAE,oCAAoC;IACtD,iBAAiB,EAAE,0BAA0B;IAC7C,yBAAyB,EAAE,mCAAmC;IAC9D,kBAAkB,EAAE,+BAA+B;IACnD,mBAAmB,EAAE,sCAAsC;IAC3D,sBAAsB,EAAE,+BAA+B;IACvD,2BAA2B,EAAE,qCAAqC;IAClE,iBAAiB,EAAE,0BAA0B;IAC7C,mBAAmB,EAAE,4BAA4B;IACjD,iBAAiB,EAAE,2BAA2B;IAC9C,kBAAkB,EAAE,mCAAmC;IACvD,WAAW,EAAE,oBAAoB;IACjC,kBAAkB,E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;IACzD,wBAAwB,EAAE,mCAAmC;IAC7D,qBAAqB,EAAE,8BAA8B;IACrD,iBAAiB,EAAE,2BAA2B;CACtC,CAAC,CAAC"}
|
package/dist/hosting-codes.js
CHANGED
|
@@ -1,83 +1,18 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
2
|
// Copyright (C) 2026 Pau Aliagas <linuxnow@gmail.com>
|
|
3
3
|
/**
|
|
4
|
-
* The hosting verdict's message codes. Codes, never prose: the
|
|
5
|
-
*
|
|
4
|
+
* The hosting verdict's message codes. Codes, never prose: the surface renders the operator's
|
|
5
|
+
* locale.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
7
|
+
* omx-clap-core declares every hosting code: one `HOSTING_<DIMENSION>_CODES` table per dimension,
|
|
8
|
+
* in the TypeScript modules its package installs under `pkg-config --variable=tsdir omx-clap-core`
|
|
9
|
+
* (BUILDING.md). {@link HOSTING_CODE} is those tables flattened into one `key: code` map, written
|
|
10
|
+
* as plain data into `hosting-codes.generated.ts` by `tools/gen-hosting-codes.mjs` at build time:
|
|
11
|
+
* a code omx-clap-core does not declare cannot be named here, and this module reads no file and
|
|
12
|
+
* imports no `node:` module, so every public subpath that reaches it bundles for a browser.
|
|
13
|
+
* `src/contract-vocabulary-conformance.test.ts` holds the generated map to omx-clap-core's real
|
|
14
|
+
* modules, either way.
|
|
11
15
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
stabilityCrashedAttributed: 'hosting.stability.crashed-attributed-plugin',
|
|
15
|
-
stabilityCrashedLive: 'hosting.stability.crashed-live-on-this-rig',
|
|
16
|
-
stabilityBelowFloor: 'hosting.stability.cycles-below-floor',
|
|
17
|
-
stabilityUnsoaked: 'hosting.stability.unsoaked',
|
|
18
|
-
stabilitySoakFailedAtRate: 'hosting.stability.soak-failed-at-rate',
|
|
19
|
-
stabilityUnmeasured: 'hosting.stability.unmeasured',
|
|
20
|
-
stabilityCrashUnattributed: 'hosting.stability.crash-unattributed',
|
|
21
|
-
stabilitySpawnsThreads: 'hosting.stability.spawns-threads',
|
|
22
|
-
stabilityLinksGuiToolkit: 'hosting.stability.links-gui-toolkit',
|
|
23
|
-
rtSafetyClean: 'hosting.rt-safety.clean-under-sweep',
|
|
24
|
-
rtSafetyViolations: 'hosting.rt-safety.violations-in-run',
|
|
25
|
-
rtSafetyUnmeasured: 'hosting.rt-safety.unmeasured',
|
|
26
|
-
rtSafetyNotReproducible: 'hosting.rt-safety.not-reproducible',
|
|
27
|
-
// The note sweep: an instrument played under the interposer, a count of its own.
|
|
28
|
-
rtSafetyNotesClean: 'hosting.rt-safety.clean-under-notes',
|
|
29
|
-
rtSafetyNotesViolations: 'hosting.rt-safety.violations-under-notes',
|
|
30
|
-
rtSafetyNotesUnmeasured: 'hosting.rt-safety.notes-unmeasured',
|
|
31
|
-
featuresProvided: 'hosting.features.all-provided',
|
|
32
|
-
featuresMissing: 'hosting.features.required-not-provided',
|
|
33
|
-
featuresDisqualifying: 'hosting.features.host-not-provided',
|
|
34
|
-
featuresCv: 'hosting.features.cv-ports',
|
|
35
|
-
featuresMidiIn: 'hosting.features.midi-in-fed-empty',
|
|
36
|
-
featuresUnscanned: 'hosting.features.scan-predates-field',
|
|
37
|
-
costWithinCeiling: 'hosting.cost.within-ceiling',
|
|
38
|
-
costAboveCeiling: 'hosting.cost.above-ceiling',
|
|
39
|
-
costSpiky: 'hosting.cost.spiky-tail',
|
|
40
|
-
costUnmeasured: 'hosting.cost.unmeasured-at-rate-and-quantum',
|
|
41
|
-
costFieldsMissing: 'hosting.cost.fields-missing',
|
|
42
|
-
latencyResolved: 'hosting.latency.resolved',
|
|
43
|
-
latencyUnmeasured: 'hosting.latency.unmeasured',
|
|
44
|
-
latencyNonconforming: 'hosting.latency.nonconforming',
|
|
45
|
-
latencyParameterDependent: 'hosting.latency.parameter-dependent',
|
|
46
|
-
topologyMatched: 'hosting.topology.matched',
|
|
47
|
-
topologyNoAudioInput: 'hosting.topology.no-audio-input',
|
|
48
|
-
topologyNoAudioOutput: 'hosting.topology.no-audio-output',
|
|
49
|
-
topologyExtraInputs: 'hosting.topology.extra-inputs-fed-silence',
|
|
50
|
-
topologyInstrument: 'hosting.topology.instrument',
|
|
51
|
-
// The CLAP arm: the SAME dimensions fed from CLAP facts,
|
|
52
|
-
// minted here where the LV2 table has no code for the fact.
|
|
53
|
-
topologyWiderThanStrip: 'hosting.topology.wider-than-strip',
|
|
54
|
-
clapLatencyMismatch: 'hosting.clap.latency-mismatch',
|
|
55
|
-
clapNotAudioEffect: 'hosting.clap.not-audio-effect',
|
|
56
|
-
clapHeadlessFailed: 'hosting.clap.headless-failed',
|
|
57
|
-
clapNoteInput: 'hosting.clap.note-input',
|
|
58
|
-
clapThreadViolation: 'hosting.clap.thread-violation',
|
|
59
|
-
clapProcessError: 'hosting.clap.process-error',
|
|
60
|
-
clapUnqualified: 'hosting.clap.unqualified',
|
|
61
|
-
clapFormatNotHosted: 'hosting.clap.format-not-hosted',
|
|
62
|
-
clapExtensionsNotCovered: 'hosting.clap.extensions-not-covered',
|
|
63
|
-
outputNonFinite: 'hosting.output.non-finite',
|
|
64
|
-
workerNonconforming: 'hosting.worker.nonconforming',
|
|
65
|
-
// The pin (spec §11; one-contract §10.3): a host's refusal at add, by the daemon's code.
|
|
66
|
-
integrityUnpinned: 'hosting.integrity.unpinned',
|
|
67
|
-
integrityBinaryMismatch: 'hosting.integrity.binary-mismatch',
|
|
68
|
-
integrityLayoutMismatch: 'hosting.integrity.layout-mismatch',
|
|
69
|
-
overrideIsolated: 'hosting.override.curator-isolated',
|
|
70
|
-
hostProvenanceDiffers: 'hosting.provenance.host-differs',
|
|
71
|
-
sweepControlDidNotFire: 'hosting.provenance.sweep-control-did-not-fire',
|
|
72
|
-
// The five REALISED reasons. Everything above answers what a plugin EARNED; these answer
|
|
73
|
-
// what the console DID with that, and the difference between the two is the operator's
|
|
74
|
-
// whole question when a slot is not on the fast path.
|
|
75
|
-
disabled: 'hosting.disabled',
|
|
76
|
-
unjudged: 'hosting.unjudged',
|
|
77
|
-
noRealisation: 'hosting.no-realisation',
|
|
78
|
-
realisedInProcess: 'hosting.realised.in-process',
|
|
79
|
-
// A plugin LINKED into the engine (the static-link registry) runs in-process without a
|
|
80
|
-
// verdict: the library's oracles are its proof.
|
|
81
|
-
linked: 'hosting.linked',
|
|
82
|
-
};
|
|
16
|
+
import { HOSTING_CODE } from "./hosting-codes.generated.js";
|
|
17
|
+
export { HOSTING_CODE };
|
|
83
18
|
//# sourceMappingURL=hosting-codes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hosting-codes.js","sourceRoot":"","sources":["../src/hosting-codes.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,sDAAsD;AACtD
|
|
1
|
+
{"version":3,"file":"hosting-codes.js","sourceRoot":"","sources":["../src/hosting-codes.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,sDAAsD;AACtD;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -95,12 +95,11 @@ export type HostingCode = (typeof HOSTING_CODE)[keyof typeof HOSTING_CODE];
|
|
|
95
95
|
*/
|
|
96
96
|
export declare const CLAP_CORE_REFUSALS: {
|
|
97
97
|
readonly headlessFailed: "clapHeadlessFailed";
|
|
98
|
-
readonly notAudioEffect: "clapNotAudioEffect";
|
|
99
98
|
readonly noteInput: "clapNoteInput";
|
|
100
99
|
readonly noAudioInput: "topologyNoAudioInput";
|
|
101
100
|
readonly noAudioOutput: "topologyNoAudioOutput";
|
|
102
101
|
readonly widerThanStrip: "topologyWiderThanStrip";
|
|
103
|
-
readonly
|
|
102
|
+
readonly tooManyPorts: "topologyTooManyPorts";
|
|
104
103
|
readonly crashedLive: "stabilityCrashedLive";
|
|
105
104
|
readonly outputNonFinite: "outputNonFinite";
|
|
106
105
|
};
|
|
@@ -67,12 +67,11 @@ export { HOSTING_CODE };
|
|
|
67
67
|
*/
|
|
68
68
|
export const CLAP_CORE_REFUSALS = {
|
|
69
69
|
headlessFailed: "clapHeadlessFailed",
|
|
70
|
-
notAudioEffect: "clapNotAudioEffect",
|
|
71
70
|
noteInput: "clapNoteInput",
|
|
72
71
|
noAudioInput: "topologyNoAudioInput",
|
|
73
72
|
noAudioOutput: "topologyNoAudioOutput",
|
|
74
73
|
widerThanStrip: "topologyWiderThanStrip",
|
|
75
|
-
|
|
74
|
+
tooManyPorts: "topologyTooManyPorts",
|
|
76
75
|
crashedLive: "stabilityCrashedLive",
|
|
77
76
|
outputNonFinite: "outputNonFinite",
|
|
78
77
|
};
|
|
@@ -82,12 +81,11 @@ export const CLAP_CORE_REFUSALS = {
|
|
|
82
81
|
* refusal so the renderer holds no prose. A refusal without a line renders bare.
|
|
83
82
|
*/
|
|
84
83
|
export const CLAP_CORE_REFUSAL_DESCRIPTIONS = {
|
|
85
|
-
notAudioEffect: "the plugin is not an audio effect",
|
|
86
84
|
noteInput: "the plugin declares a note input the configuration refuses",
|
|
87
85
|
noAudioInput: "the plugin has no audio input",
|
|
88
86
|
noAudioOutput: "the plugin has no audio output",
|
|
89
87
|
widerThanStrip: "the plugin is wider than the strip",
|
|
90
|
-
|
|
88
|
+
tooManyPorts: "the plugin has more ports than the auxiliary limit allows",
|
|
91
89
|
crashedLive: "the plugin crashed live on this rig",
|
|
92
90
|
outputNonFinite: "the plugin produced non-finite output",
|
|
93
91
|
};
|
|
@@ -384,9 +382,6 @@ instruments = false) {
|
|
|
384
382
|
features: missing.join(" "),
|
|
385
383
|
}));
|
|
386
384
|
}
|
|
387
|
-
if ((features.cvPorts ?? 0) > 0) {
|
|
388
|
-
out.push(reason("features", "objective", "unsuitable", HOSTING_CODE.featuresCv));
|
|
389
|
-
}
|
|
390
385
|
}
|
|
391
386
|
if (descriptor.hasMidiIn && !instruments) {
|
|
392
387
|
out.push(reason("features", "objective", "conditional", HOSTING_CODE.featuresMidiIn));
|
|
@@ -489,7 +484,7 @@ export function hostingTopologyReasons(descriptor, instruments = false) {
|
|
|
489
484
|
];
|
|
490
485
|
}
|
|
491
486
|
return [
|
|
492
|
-
reason("topology", "objective", "conditional", HOSTING_CODE.
|
|
487
|
+
reason("topology", "objective", "conditional", HOSTING_CODE.topologyTooManyPorts, { ins, outs }),
|
|
493
488
|
];
|
|
494
489
|
}
|
|
495
490
|
/**
|
|
@@ -514,7 +509,7 @@ export function clapTopologyReasons(clap, instruments = false) {
|
|
|
514
509
|
return [reason("topology", "objective", "unsuitable", HOSTING_CODE.topologyWiderThanStrip, { ins, outs })];
|
|
515
510
|
}
|
|
516
511
|
if (clap.sidechainInputs > 0) {
|
|
517
|
-
return [reason("topology", "objective", "unsuitable", HOSTING_CODE.
|
|
512
|
+
return [reason("topology", "objective", "unsuitable", HOSTING_CODE.topologyTooManyPorts, { ins, outs, sidechains: clap.sidechainInputs })];
|
|
518
513
|
}
|
|
519
514
|
return [reason("topology", "objective", "suitable", HOSTING_CODE.topologyMatched, { ins, outs })];
|
|
520
515
|
}
|
|
@@ -562,10 +557,6 @@ export function clapFeatureReasons(clap, profile = OPENMIXER_CONSOLE_PROFILE, sc
|
|
|
562
557
|
}
|
|
563
558
|
const out = [];
|
|
564
559
|
const offered = profile.clapExtensions;
|
|
565
|
-
const kindHosted = clap.features.includes(CLAP_FEATURE_AUDIO_EFFECT) || (profile.instruments && clap.features.includes(CLAP_FEATURE_INSTRUMENT));
|
|
566
|
-
if (!kindHosted) {
|
|
567
|
-
out.push(reason("features", "objective", "unsuitable", HOSTING_CODE.clapNotAudioEffect, { features: clap.features.join(" ") }));
|
|
568
|
-
}
|
|
569
560
|
if (!clap.headlessOk) {
|
|
570
561
|
out.push(reason("features", "objective", "unsuitable", HOSTING_CODE.clapHeadlessFailed));
|
|
571
562
|
}
|