@plasius/gpu-shader 0.1.1 → 0.1.3

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/dist/index.d.cts CHANGED
@@ -2,11 +2,20 @@ import { J as JsonValue, S as Sha256Hex, G as GpuInterfaceManifest, a as Seriali
2
2
  export { p as AssembledWgslModule, q as GPU_INTERFACE_MANIFEST_VERSION, r as GPU_SHADER_STORE_FEATURE_FLAG, s as GPU_SHADER_STYLE_SELECTION_CAPABILITY, t as GeneratedGpuInterfaceArtifacts, u as GitObjectId, v as GpuAddressSpace, w as GpuArrayLayout, x as GpuAtomicLayout, y as GpuBindingAccess, z as GpuBindingLayout, B as GpuBindingResourceLayout, C as GpuCompareFunction, D as GpuCompilationMessageLike, E as GpuEntryPointInterface, H as GpuEntryPointIo, I as GpuHostAddressSpace, K as GpuInterfaceRef, N as GpuLimitRequirement, O as GpuMatrixLayout, Q as GpuMatrixValue, R as GpuModelAbiProjection, T as GpuModelBindingLayout, U as GpuModelBindingSelector, V as GpuModelVertexInputLayout, W as GpuOverrideLayout, X as GpuRecordMemberLayout, Y as GpuRecordReferenceLayout, Z as GpuScalarKind, _ as GpuScalarLayout, $ as GpuScalarValue, a0 as GpuSemanticProjection, a1 as GpuSemanticSelector, a2 as GpuSemanticSource, a3 as GpuShaderModuleLike, a4 as GpuShaderStage, a5 as GpuTypeLayout, a6 as GpuVectorLayout, a7 as GpuVectorValue, a8 as GpuVertexInputLayout, a9 as GpuWorkgroupDimension, aa as JsonPrimitive, ab as LoadedShaderVersion, ac as ReflectGpuInterfaceInput, ad as SHADER_COMPILE_UNIT_VERSION, ae as SHADER_QUALIFICATION_BUNDLE_VERSION, af as SHADER_QUALIFICATION_FIXTURE_VERSION, ag as SHADER_STYLE_PROFILE_MANIFEST_VERSION, ah as SHADER_VALIDATION_EVIDENCE_VERSION, ai as SHADER_VERSION_MANIFEST_VERSION, aj as STABLE_WEBGPU_MATRIX_VERSION, ak as SUPPORTED_ADDITIVE_WEBGPU_MATRIX_POLICIES, al as SUPPORTED_STABLE_WEBGPU_MATRIX_POLICIES, am as ScopedShaderValidationEvidenceRef, an as SerializableGpuBindGroupLayout, ao as SerializableGpuBlendComponent, ap as SerializableGpuComputePipelineDescriptor, aq as SerializableGpuPipelineLayout, ar as SerializableGpuProgrammableStage, as as SerializableGpuRenderPipelineDescriptor, at as SerializableGpuStencilFaceState, au as ShaderCellEvidence, av as ShaderCompileContext, aw as ShaderCompileFixture, ax as ShaderCompileUnitInventory, ay as ShaderCompileUnitManifest, az as ShaderDiagnostic, aA as ShaderDiagnosticCode, aB as ShaderDiagnosticSeverity, aC as ShaderMatrixBrowserName, aD as ShaderMatrixOsName, aE as ShaderNonQualifyingWorkflowDiagnostic, aF as ShaderQualificationBindGroupResource, aG as ShaderQualificationBufferRecordLayoutProbe, aH as ShaderQualificationBundleManifest, aI as ShaderQualificationCandidateSubject, aJ as ShaderQualificationCommand, aK as ShaderQualificationExecutionProducer, aL as ShaderQualificationFixtureManifest, aM as ShaderQualificationLayoutProbe, aN as ShaderQualificationModelCompatibilityFixture, aO as ShaderQualificationPhaseEvidence, aP as ShaderQualificationPhaseName, aQ as ShaderQualificationPreflightManifest, aR as ShaderQualificationResource, aS as ShaderQualificationResult, aT as ShaderQualificationStatus, aU as ShaderQualificationTextureViewDescriptor, aV as ShaderQualificationVertexInputLayoutProbe, aW as ShaderRenderRole, aX as ShaderRunnerCellPreflightEvidence, aY as ShaderStyleRoleBinding, aZ as ShaderTrustedWorkflowProvenance, a_ as ShaderValidationCellRun, a$ as ShaderValidationEvidence, b0 as ShaderValidationEvidenceAttestationRef, b1 as ShaderValidationEvidenceRef, b2 as ShaderValidationEvidenceSubject, b3 as ShaderValidationScopeRequirement, b4 as ShaderVersionRef, b5 as StableWebGpuMatrixCell, b6 as StableWebGpuMatrixManifest } from './contracts-B49AUejk.cjs';
3
3
 
4
4
  /**
5
- * Canonicalizes contract data using the JSON Canonicalization Scheme ordering
6
- * rules. Unsupported JavaScript values are rejected rather than silently lost.
5
+ * Validates an immutable, reproducible model, interface, shader, or profile
6
+ * version before catalog access.
7
+ *
8
+ * The diagnostic is deliberately constant and never interpolates untrusted
9
+ * input, keeping runtime and storage-boundary failures bounded.
10
+ */
11
+ declare function assertImmutableAssetVersion(value: unknown): string;
12
+
13
+ /**
14
+ * Canonicalizes contract data using JSON Canonicalization Scheme ordering.
15
+ * Caller objects first pass through the bounded own-data snapshot boundary.
7
16
  */
8
17
  declare function canonicalizeGpuContract(value: unknown): string;
9
- /** Parses and verifies exact JCS canonical JSON while preserving its JSON-only type. */
18
+ /** Parses and verifies exact bounded JCS JSON while preserving its JSON-only type. */
10
19
  declare function parseCanonicalJson(value: string): JsonValue;
11
20
 
12
21
  declare function asSha256Hex(value: string): Sha256Hex;
@@ -85,4 +94,4 @@ declare function activateStyleProfile(input: {
85
94
  readonly retire?: (previous: PreparedShaderStyleProfile) => void | Promise<void>;
86
95
  }): Promise<ShaderResult<ActiveShaderStyleProfile>>;
87
96
 
88
- export { ActiveShaderStyleProfile, FrameBoundaryScheduler, GpuCapabilitySnapshot, GpuDeviceLike, GpuInterfaceManifest, GpuRecordCodec, GpuRecordLayout, GpuRecordValue, JsonValue, LoadedShaderStyleProfile, ModelGpuCompatibilityDescriptor, ModelShaderCompatibility, PreparedShaderStyleProfile, PromotedShaderCatalogResolver, SerializableGpuPipelineDescriptor, Sha256Hex, ShaderRequirements, ShaderResult, ShaderStyleController, ShaderStyleProfileManifest, ShaderStyleProfileRef, ShaderVersionManifest, ShaderVersionManifestCore, activateStyleProfile, asSha256Hex, canonicalizeGpuContract, computeGpuAbiHash, computeSha256, computeShaderManifestCoreSha256, createGpuRecordCodec, createShaderStyleController, loadShaderStyleProfile, parseCanonicalJson, parseGpuInterfaceManifest, parseJsonBytes, parseModelGpuCompatibilityDescriptor, parseShaderStyleProfileManifest, parseShaderVersionManifest, parseShaderVersionManifestCore, prepareStyleProfile, validateModelShaderCompatibility };
97
+ export { ActiveShaderStyleProfile, FrameBoundaryScheduler, GpuCapabilitySnapshot, GpuDeviceLike, GpuInterfaceManifest, GpuRecordCodec, GpuRecordLayout, GpuRecordValue, JsonValue, LoadedShaderStyleProfile, ModelGpuCompatibilityDescriptor, ModelShaderCompatibility, PreparedShaderStyleProfile, PromotedShaderCatalogResolver, SerializableGpuPipelineDescriptor, Sha256Hex, ShaderRequirements, ShaderResult, ShaderStyleController, ShaderStyleProfileManifest, ShaderStyleProfileRef, ShaderVersionManifest, ShaderVersionManifestCore, activateStyleProfile, asSha256Hex, assertImmutableAssetVersion, canonicalizeGpuContract, computeGpuAbiHash, computeSha256, computeShaderManifestCoreSha256, createGpuRecordCodec, createShaderStyleController, loadShaderStyleProfile, parseCanonicalJson, parseGpuInterfaceManifest, parseJsonBytes, parseModelGpuCompatibilityDescriptor, parseShaderStyleProfileManifest, parseShaderVersionManifest, parseShaderVersionManifestCore, prepareStyleProfile, validateModelShaderCompatibility };
package/dist/index.d.ts CHANGED
@@ -2,11 +2,20 @@ import { J as JsonValue, S as Sha256Hex, G as GpuInterfaceManifest, a as Seriali
2
2
  export { p as AssembledWgslModule, q as GPU_INTERFACE_MANIFEST_VERSION, r as GPU_SHADER_STORE_FEATURE_FLAG, s as GPU_SHADER_STYLE_SELECTION_CAPABILITY, t as GeneratedGpuInterfaceArtifacts, u as GitObjectId, v as GpuAddressSpace, w as GpuArrayLayout, x as GpuAtomicLayout, y as GpuBindingAccess, z as GpuBindingLayout, B as GpuBindingResourceLayout, C as GpuCompareFunction, D as GpuCompilationMessageLike, E as GpuEntryPointInterface, H as GpuEntryPointIo, I as GpuHostAddressSpace, K as GpuInterfaceRef, N as GpuLimitRequirement, O as GpuMatrixLayout, Q as GpuMatrixValue, R as GpuModelAbiProjection, T as GpuModelBindingLayout, U as GpuModelBindingSelector, V as GpuModelVertexInputLayout, W as GpuOverrideLayout, X as GpuRecordMemberLayout, Y as GpuRecordReferenceLayout, Z as GpuScalarKind, _ as GpuScalarLayout, $ as GpuScalarValue, a0 as GpuSemanticProjection, a1 as GpuSemanticSelector, a2 as GpuSemanticSource, a3 as GpuShaderModuleLike, a4 as GpuShaderStage, a5 as GpuTypeLayout, a6 as GpuVectorLayout, a7 as GpuVectorValue, a8 as GpuVertexInputLayout, a9 as GpuWorkgroupDimension, aa as JsonPrimitive, ab as LoadedShaderVersion, ac as ReflectGpuInterfaceInput, ad as SHADER_COMPILE_UNIT_VERSION, ae as SHADER_QUALIFICATION_BUNDLE_VERSION, af as SHADER_QUALIFICATION_FIXTURE_VERSION, ag as SHADER_STYLE_PROFILE_MANIFEST_VERSION, ah as SHADER_VALIDATION_EVIDENCE_VERSION, ai as SHADER_VERSION_MANIFEST_VERSION, aj as STABLE_WEBGPU_MATRIX_VERSION, ak as SUPPORTED_ADDITIVE_WEBGPU_MATRIX_POLICIES, al as SUPPORTED_STABLE_WEBGPU_MATRIX_POLICIES, am as ScopedShaderValidationEvidenceRef, an as SerializableGpuBindGroupLayout, ao as SerializableGpuBlendComponent, ap as SerializableGpuComputePipelineDescriptor, aq as SerializableGpuPipelineLayout, ar as SerializableGpuProgrammableStage, as as SerializableGpuRenderPipelineDescriptor, at as SerializableGpuStencilFaceState, au as ShaderCellEvidence, av as ShaderCompileContext, aw as ShaderCompileFixture, ax as ShaderCompileUnitInventory, ay as ShaderCompileUnitManifest, az as ShaderDiagnostic, aA as ShaderDiagnosticCode, aB as ShaderDiagnosticSeverity, aC as ShaderMatrixBrowserName, aD as ShaderMatrixOsName, aE as ShaderNonQualifyingWorkflowDiagnostic, aF as ShaderQualificationBindGroupResource, aG as ShaderQualificationBufferRecordLayoutProbe, aH as ShaderQualificationBundleManifest, aI as ShaderQualificationCandidateSubject, aJ as ShaderQualificationCommand, aK as ShaderQualificationExecutionProducer, aL as ShaderQualificationFixtureManifest, aM as ShaderQualificationLayoutProbe, aN as ShaderQualificationModelCompatibilityFixture, aO as ShaderQualificationPhaseEvidence, aP as ShaderQualificationPhaseName, aQ as ShaderQualificationPreflightManifest, aR as ShaderQualificationResource, aS as ShaderQualificationResult, aT as ShaderQualificationStatus, aU as ShaderQualificationTextureViewDescriptor, aV as ShaderQualificationVertexInputLayoutProbe, aW as ShaderRenderRole, aX as ShaderRunnerCellPreflightEvidence, aY as ShaderStyleRoleBinding, aZ as ShaderTrustedWorkflowProvenance, a_ as ShaderValidationCellRun, a$ as ShaderValidationEvidence, b0 as ShaderValidationEvidenceAttestationRef, b1 as ShaderValidationEvidenceRef, b2 as ShaderValidationEvidenceSubject, b3 as ShaderValidationScopeRequirement, b4 as ShaderVersionRef, b5 as StableWebGpuMatrixCell, b6 as StableWebGpuMatrixManifest } from './contracts-B49AUejk.js';
3
3
 
4
4
  /**
5
- * Canonicalizes contract data using the JSON Canonicalization Scheme ordering
6
- * rules. Unsupported JavaScript values are rejected rather than silently lost.
5
+ * Validates an immutable, reproducible model, interface, shader, or profile
6
+ * version before catalog access.
7
+ *
8
+ * The diagnostic is deliberately constant and never interpolates untrusted
9
+ * input, keeping runtime and storage-boundary failures bounded.
10
+ */
11
+ declare function assertImmutableAssetVersion(value: unknown): string;
12
+
13
+ /**
14
+ * Canonicalizes contract data using JSON Canonicalization Scheme ordering.
15
+ * Caller objects first pass through the bounded own-data snapshot boundary.
7
16
  */
8
17
  declare function canonicalizeGpuContract(value: unknown): string;
9
- /** Parses and verifies exact JCS canonical JSON while preserving its JSON-only type. */
18
+ /** Parses and verifies exact bounded JCS JSON while preserving its JSON-only type. */
10
19
  declare function parseCanonicalJson(value: string): JsonValue;
11
20
 
12
21
  declare function asSha256Hex(value: string): Sha256Hex;
@@ -85,4 +94,4 @@ declare function activateStyleProfile(input: {
85
94
  readonly retire?: (previous: PreparedShaderStyleProfile) => void | Promise<void>;
86
95
  }): Promise<ShaderResult<ActiveShaderStyleProfile>>;
87
96
 
88
- export { ActiveShaderStyleProfile, FrameBoundaryScheduler, GpuCapabilitySnapshot, GpuDeviceLike, GpuInterfaceManifest, GpuRecordCodec, GpuRecordLayout, GpuRecordValue, JsonValue, LoadedShaderStyleProfile, ModelGpuCompatibilityDescriptor, ModelShaderCompatibility, PreparedShaderStyleProfile, PromotedShaderCatalogResolver, SerializableGpuPipelineDescriptor, Sha256Hex, ShaderRequirements, ShaderResult, ShaderStyleController, ShaderStyleProfileManifest, ShaderStyleProfileRef, ShaderVersionManifest, ShaderVersionManifestCore, activateStyleProfile, asSha256Hex, canonicalizeGpuContract, computeGpuAbiHash, computeSha256, computeShaderManifestCoreSha256, createGpuRecordCodec, createShaderStyleController, loadShaderStyleProfile, parseCanonicalJson, parseGpuInterfaceManifest, parseJsonBytes, parseModelGpuCompatibilityDescriptor, parseShaderStyleProfileManifest, parseShaderVersionManifest, parseShaderVersionManifestCore, prepareStyleProfile, validateModelShaderCompatibility };
97
+ export { ActiveShaderStyleProfile, FrameBoundaryScheduler, GpuCapabilitySnapshot, GpuDeviceLike, GpuInterfaceManifest, GpuRecordCodec, GpuRecordLayout, GpuRecordValue, JsonValue, LoadedShaderStyleProfile, ModelGpuCompatibilityDescriptor, ModelShaderCompatibility, PreparedShaderStyleProfile, PromotedShaderCatalogResolver, SerializableGpuPipelineDescriptor, Sha256Hex, ShaderRequirements, ShaderResult, ShaderStyleController, ShaderStyleProfileManifest, ShaderStyleProfileRef, ShaderVersionManifest, ShaderVersionManifestCore, activateStyleProfile, asSha256Hex, assertImmutableAssetVersion, canonicalizeGpuContract, computeGpuAbiHash, computeSha256, computeShaderManifestCoreSha256, createGpuRecordCodec, createShaderStyleController, loadShaderStyleProfile, parseCanonicalJson, parseGpuInterfaceManifest, parseJsonBytes, parseModelGpuCompatibilityDescriptor, parseShaderStyleProfileManifest, parseShaderVersionManifest, parseShaderVersionManifestCore, prepareStyleProfile, validateModelShaderCompatibility };