@nakafa/aksara-contracts 8.4.0 → 8.4.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/dist/assessment/document.d.ts +1 -1
- package/dist/assessment/document.js +1 -1
- package/dist/assessment/figure.d.ts +1 -1
- package/dist/assessment/figure.js +1 -1
- package/dist/assessment/fit.d.ts +3 -3
- package/dist/assessment/fit.js +3 -3
- package/dist/assessment/locales.d.ts +1 -1
- package/dist/assessment/scoring.d.ts +1 -1
- package/dist/assessment/scoring.js +1 -1
- package/dist/cache/content.d.ts +1 -1
- package/dist/cache/content.js +1 -1
- package/dist/content.d.ts +3 -2
- package/dist/graph/identity.d.ts +1 -1
- package/dist/graph/identity.js +1 -1
- package/dist/math/bounds.d.ts +1 -1
- package/dist/math/collision.d.ts +1 -1
- package/dist/math/coordinate.d.ts +6 -5
- package/dist/math/coordinate.js +2 -2
- package/dist/math/formula/compile.d.ts +1 -1
- package/dist/math/formula/compile.js +1 -1
- package/dist/math/formula/contour.d.ts +1 -1
- package/dist/math/formula/contour.js +1 -1
- package/dist/math/formula/field.js +1 -1
- package/dist/math/formula/mesh.d.ts +1 -1
- package/dist/math/formula/mesh.js +1 -1
- package/dist/math/formula/names.d.ts +1 -1
- package/dist/math/formula/names.js +1 -1
- package/dist/math/formula/parse.d.ts +1 -1
- package/dist/math/formula/parse.js +1 -1
- package/dist/math/formula/plane.d.ts +2 -2
- package/dist/math/formula/plane.js +3 -3
- package/dist/math/formula/reader.d.ts +2 -1
- package/dist/math/formula/reader.js +1 -1
- package/dist/math/formula/region.d.ts +2 -2
- package/dist/math/formula/region.js +3 -3
- package/dist/math/formula/sample.d.ts +1 -1
- package/dist/math/formula/scan.d.ts +1 -1
- package/dist/math/formula/scan.js +1 -1
- package/dist/math/formula/slider.d.ts +2 -2
- package/dist/math/formula/slider.js +1 -1
- package/dist/math/formula/space.d.ts +1 -1
- package/dist/math/formula/space.js +1 -1
- package/dist/math/precision.d.ts +1 -1
- package/dist/math/precision.js +1 -1
- package/dist/math/resolution.js +1 -1
- package/dist/math/scene.d.ts +2 -2
- package/dist/math/vector.d.ts +1 -1
- package/dist/preview/spec.js +1 -1
- package/dist/program/curriculum.d.ts +1 -1
- package/dist/program/curriculum.js +1 -1
- package/dist/program/snapshot/digest.d.ts +1 -1
- package/dist/program/snapshot/digest.js +2 -2
- package/dist/program/snapshot/hash.d.ts +2 -2
- package/dist/projection/digest.d.ts +1 -1
- package/dist/projection/digest.js +1 -1
- package/dist/projection/hash.js +1 -1
- package/dist/projection/material.d.ts +1 -1
- package/dist/projection/material.js +1 -1
- package/dist/projection/verify.js +1 -1
- package/dist/quran/identity.d.ts +2 -1
- package/dist/quran/provenance.d.ts +2 -2
- package/dist/quran/provenance.js +1 -1
- package/dist/quran/snapshot/hash.d.ts +1 -1
- package/dist/quran/snapshot/row/hash.d.ts +1 -1
- package/dist/quran/snapshot/row/hash.js +1 -1
- package/dist/quran/snapshot/spec.js +1 -1
- package/dist/quran/source.d.ts +2 -2
- package/dist/release/current/evidence.d.ts +1 -1
- package/dist/release/current/evidence.js +1 -1
- package/dist/release/current/state.d.ts +1 -1
- package/dist/release/current/state.js +1 -1
- package/dist/release/head.js +1 -1
- package/dist/release/items.d.ts +1 -1
- package/dist/release/items.js +1 -1
- package/dist/release/policy.d.ts +1 -1
- package/dist/release/policy.js +1 -1
- package/dist/release/result/digest.d.ts +3 -3
- package/dist/release/result/digest.js +2 -2
- package/dist/release/rollback/digest.d.ts +1 -1
- package/dist/release/rollback/digest.js +1 -1
- package/dist/release/route/digest.d.ts +1 -1
- package/dist/release/route/digest.js +1 -1
- package/dist/release/snapshot/evidence/assessment.d.ts +1 -1
- package/dist/release/snapshot/evidence/assessment.js +1 -1
- package/dist/release/snapshot/evidence/program.d.ts +1 -1
- package/dist/release/snapshot/evidence/program.js +1 -1
- package/dist/release/snapshot/evidence/quran.d.ts +1 -1
- package/dist/release/snapshot/evidence/quran.js +1 -1
- package/dist/release/snapshot/evidence/requirement.d.ts +3 -2
- package/dist/release/snapshot/evidence/requirement.js +1 -1
- package/dist/release/snapshot/spec.d.ts +2 -2
- package/dist/release/snapshot/spec.js +1 -1
- package/dist/release/snapshot/verify.d.ts +1 -1
- package/dist/release/snapshot/verify.js +1 -1
- package/dist/release/spec.d.ts +1 -1
- package/dist/release/verify.d.ts +1 -1
- package/dist/release/verify.js +1 -1
- package/dist/renderer/compatibility.d.ts +1 -1
- package/dist/renderer/compatibility.js +2 -2
- package/dist/renderer/contract.d.ts +1 -1
- package/dist/renderer/contract.js +1 -1
- package/dist/runtime/spec.js +2 -2
- package/dist/signature/spec.d.ts +3 -2
- package/dist/signature/verify.d.ts +2 -1
- package/dist/transport/request.d.ts +1 -1
- package/dist/visual/base/math.d.ts +1 -1
- package/dist/visual/base/media.d.ts +1 -1
- package/dist/visual/biology/bacteria.d.ts +1 -1
- package/dist/visual/biology/bacteria.js +1 -1
- package/dist/visual/biology/cell.d.ts +1 -1
- package/dist/visual/biology/climate.d.ts +1 -1
- package/dist/visual/biology/climate.js +1 -1
- package/dist/visual/biology/ecology.d.ts +1 -1
- package/dist/visual/biology/physiology.d.ts +1 -1
- package/dist/visual/biology/physiology.js +1 -1
- package/dist/visual/biology/plant.d.ts +1 -1
- package/dist/visual/biology/plant.js +1 -1
- package/dist/visual/biology.d.ts +1 -1
- package/dist/visual/chemistry/atom.d.ts +1 -1
- package/dist/visual/chemistry/atom.js +1 -1
- package/dist/visual/chemistry/balance.d.ts +1 -1
- package/dist/visual/chemistry/balance.js +1 -1
- package/dist/visual/chemistry/bonding.d.ts +1 -1
- package/dist/visual/chemistry/discovery.d.ts +1 -1
- package/dist/visual/chemistry/electrochemistry.d.ts +1 -1
- package/dist/visual/chemistry/electrochemistry.js +1 -1
- package/dist/visual/chemistry/electron.d.ts +1 -1
- package/dist/visual/chemistry/electron.js +1 -1
- package/dist/visual/chemistry/laws.d.ts +1 -1
- package/dist/visual/chemistry/laws.js +1 -1
- package/dist/visual/chemistry/particles.d.ts +1 -1
- package/dist/visual/chemistry/periodic.d.ts +1 -1
- package/dist/visual/chemistry/periodic.js +1 -1
- package/dist/visual/chemistry/rate.d.ts +1 -1
- package/dist/visual/chemistry/rate.js +1 -1
- package/dist/visual/chemistry/reaction.d.ts +1 -1
- package/dist/visual/chemistry/reaction.js +1 -1
- package/dist/visual/chemistry/titration.d.ts +1 -1
- package/dist/visual/chemistry/titration.js +1 -1
- package/dist/visual/mathematics/chance.d.ts +1 -1
- package/dist/visual/mathematics/chance.js +1 -1
- package/dist/visual/mathematics/chart.d.ts +1 -1
- package/dist/visual/mathematics/charts.d.ts +1 -1
- package/dist/visual/mathematics/function.d.ts +1 -1
- package/dist/visual/mathematics/numeral.d.ts +1 -1
- package/dist/visual/mathematics/numeral.js +1 -1
- package/dist/visual/physics/braking.d.ts +1 -1
- package/dist/visual/physics/braking.js +1 -1
- package/dist/visual/physics/circuit.d.ts +1 -1
- package/dist/visual/physics/circular.d.ts +1 -1
- package/dist/visual/physics/circular.js +1 -1
- package/dist/visual/physics/dynamics.d.ts +1 -1
- package/dist/visual/physics/dynamics.js +1 -1
- package/dist/visual/physics/efficiency.d.ts +1 -1
- package/dist/visual/physics/efficiency.js +1 -1
- package/dist/visual/physics/electronics.d.ts +1 -1
- package/dist/visual/physics/falling.d.ts +1 -1
- package/dist/visual/physics/falling.js +1 -1
- package/dist/visual/physics/field.d.ts +1 -1
- package/dist/visual/physics/fluid.d.ts +1 -1
- package/dist/visual/physics/fluid.js +1 -1
- package/dist/visual/physics/force.d.ts +1 -1
- package/dist/visual/physics/gravity.d.ts +1 -1
- package/dist/visual/physics/heat.d.ts +1 -1
- package/dist/visual/physics/heat.js +1 -1
- package/dist/visual/physics/instrument.d.ts +1 -1
- package/dist/visual/physics/light.d.ts +1 -1
- package/dist/visual/physics/light.js +1 -1
- package/dist/visual/physics/measurement.d.ts +1 -1
- package/dist/visual/physics/measurement.js +1 -1
- package/dist/visual/physics/motion.d.ts +1 -1
- package/dist/visual/physics/nuclear.d.ts +1 -1
- package/dist/visual/physics/parabolic.d.ts +1 -1
- package/dist/visual/physics/position.d.ts +1 -1
- package/dist/visual/physics/position.js +1 -1
- package/dist/visual/physics/power.d.ts +1 -1
- package/dist/visual/physics/power.js +1 -1
- package/dist/visual/physics/precision.d.ts +1 -1
- package/dist/visual/physics/precision.js +1 -1
- package/dist/visual/physics/product.d.ts +1 -1
- package/dist/visual/physics/reading.d.ts +1 -1
- package/dist/visual/physics/reading.js +1 -1
- package/dist/visual/physics/record.d.ts +1 -1
- package/dist/visual/physics/record.js +1 -1
- package/dist/visual/physics/relative.d.ts +1 -1
- package/dist/visual/physics/relative.js +1 -1
- package/dist/visual/physics/solar.d.ts +1 -1
- package/dist/visual/physics/solar.js +1 -1
- package/dist/visual/physics/vector.d.ts +1 -1
- package/dist/visual/physics/vector.js +1 -1
- package/dist/visual/physics/velocity.d.ts +1 -1
- package/dist/visual/physics/wave.d.ts +1 -1
- package/dist/visual/politics.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
import { FigureNodeSchema } from "#contracts/assessment/figure";
|
|
3
|
-
import {
|
|
3
|
+
import type { InlineInteractionNode, InlineNode } from "#contracts/assessment/inline";
|
|
4
4
|
/**
|
|
5
5
|
* Deepest nesting a document may have, counting `doc` as level 1 and a text
|
|
6
6
|
* node as a level. Sixteen is the nesting that Convex allows in one stored
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Array as Arr, Predicate, Schema, SchemaTransformation } from "effect";
|
|
2
2
|
import { FigureNodeSchema, ImageSchema } from "#contracts/assessment/figure";
|
|
3
3
|
import { LocalIdSchema } from "#contracts/assessment/identity";
|
|
4
|
-
import { InlineContentSchema
|
|
4
|
+
import { InlineContentSchema } from "#contracts/assessment/inline";
|
|
5
5
|
import { LatexSchema, PlainTextSchema, PositiveIntSchema, } from "#contracts/assessment/scalar";
|
|
6
6
|
/**
|
|
7
7
|
* Deepest nesting a document may have, counting `doc` as level 1 and a text
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import {
|
|
2
|
+
import type { AssessmentVisuals, VisualName } from "#contracts/visual/catalog";
|
|
3
3
|
/**
|
|
4
4
|
* One uploaded image. The text alternative is required, and the pixel size is
|
|
5
5
|
* required so a page can reserve the space before the file loads.
|
|
@@ -2,7 +2,7 @@ import { Array as Arr, Schema } from "effect";
|
|
|
2
2
|
import { AssetIdSchema } from "#contracts/assessment/identity";
|
|
3
3
|
import { RichTextSchema } from "#contracts/assessment/inline";
|
|
4
4
|
import { PlainTextSchema, PositiveIntSchema, } from "#contracts/assessment/scalar";
|
|
5
|
-
import { assessmentVisuals, FIGURE_NAMES
|
|
5
|
+
import { assessmentVisuals, FIGURE_NAMES } from "#contracts/visual/catalog";
|
|
6
6
|
/**
|
|
7
7
|
* One uploaded image. The text alternative is required, and the pixel size is
|
|
8
8
|
* required so a page can reserve the space before the file loads.
|
package/dist/assessment/fit.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { AssessmentDocument } from "#contracts/assessment/document";
|
|
2
|
+
import type { Interaction } from "#contracts/assessment/interaction";
|
|
3
|
+
import type { ScoringOverride } from "#contracts/assessment/scoring";
|
|
4
4
|
/**
|
|
5
5
|
* Checks that the interactions of a version and its prompt agree: each
|
|
6
6
|
* interaction has its own identifier and sits in the prompt as its kind
|
package/dist/assessment/fit.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Array as Arr, HashSet } from "effect";
|
|
2
|
-
import { documentPlacements
|
|
2
|
+
import { documentPlacements } from "#contracts/assessment/document";
|
|
3
3
|
import { hasDistinctIds, hasUniqueIds } from "#contracts/assessment/identity";
|
|
4
|
-
import { canSitInText
|
|
5
|
-
import { supportsRule
|
|
4
|
+
import { canSitInText } from "#contracts/assessment/interaction";
|
|
5
|
+
import { supportsRule } from "#contracts/assessment/scoring";
|
|
6
6
|
/**
|
|
7
7
|
* Checks that the prompt places one interaction where its kind belongs: a
|
|
8
8
|
* field exactly once, in text or as a block; a gap match once for each gap, in
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Option } from "effect";
|
|
2
|
-
import {
|
|
2
|
+
import type { CatalogRow } from "#contracts/assessment/catalog";
|
|
3
3
|
import type { ActiveAppLocaleList } from "#contracts/locale";
|
|
4
4
|
/**
|
|
5
5
|
* Finds the first catalog row that is not served where its node is: each row
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import {
|
|
2
|
+
import type { InteractionKind } from "#contracts/assessment/interaction";
|
|
3
3
|
/**
|
|
4
4
|
* All or nothing: category 1 for a fully correct answer and 0 for any other,
|
|
5
5
|
* so k is 1. It is `match_correct` of QTI response processing.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Array as Arr, Match, Option, Schema } from "effect";
|
|
2
2
|
import { hasUniqueIds, LocalIdSchema } from "#contracts/assessment/identity";
|
|
3
|
-
import { canSitInText
|
|
3
|
+
import { canSitInText } from "#contracts/assessment/interaction";
|
|
4
4
|
import { LocalizedTextSchema, NonNegativeIntSchema, PlainTextSchema, PositiveIntSchema, } from "#contracts/assessment/scalar";
|
|
5
5
|
/**
|
|
6
6
|
* All or nothing: category 1 for a fully correct answer and 0 for any other,
|
package/dist/cache/content.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import {
|
|
2
|
+
import type { Sha256Hash } from "#contracts/ids";
|
|
3
3
|
/** Mutable publication dependencies owned by the signed source contracts. */
|
|
4
4
|
export declare const ContentCacheScopeSchema: Schema.Literals<readonly ["article", "material", "page", "assessment", "program", "quran"]>;
|
|
5
5
|
export type ContentCacheScope = typeof ContentCacheScopeSchema.Type;
|
package/dist/cache/content.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
import { ContentFamilySchema } from "#contracts/content";
|
|
3
|
-
import { ReleaseIdSchema, Sha256HashSchema
|
|
3
|
+
import { ReleaseIdSchema, Sha256HashSchema } from "#contracts/ids";
|
|
4
4
|
import { ContentSnapshotKindSchema } from "#contracts/release/snapshot/scope";
|
|
5
5
|
const ARTIFACT_CACHE_PREFIX = "content-artifact:";
|
|
6
6
|
const SCOPE_CACHE_PREFIX = "content-scope:";
|
package/dist/content.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Effect, Schema } from "effect";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { PublicPath } from "#contracts/ids";
|
|
3
|
+
import { Sha256HashSchema } from "#contracts/ids";
|
|
4
|
+
import type { AppLocale } from "#contracts/locale";
|
|
4
5
|
/** Published content families backed by real Aksara source registries. */
|
|
5
6
|
export declare const ContentFamilySchema: Schema.Literals<readonly ["article", "material", "page"]>;
|
|
6
7
|
export type ContentFamily = typeof ContentFamilySchema.Type;
|
package/dist/graph/identity.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect, Schema } from "effect";
|
|
2
|
-
import {
|
|
2
|
+
import type { LearningGraphIdentity } from "#contracts/graph/spec";
|
|
3
3
|
/** Validated hierarchy segments required to derive one graph identity. */
|
|
4
4
|
export declare const LearningGraphSegmentsSchema: Schema.Struct<{
|
|
5
5
|
readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de", "ms"]>, "@NakafaAI/AksaraAppLocale">;
|
package/dist/graph/identity.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Array as Arr, Effect, Schema } from "effect";
|
|
2
|
-
import { LearningGraphIdentitySchema
|
|
2
|
+
import { LearningGraphIdentitySchema } from "#contracts/graph/spec";
|
|
3
3
|
import { AppLocaleSchema } from "#contracts/locale";
|
|
4
4
|
import { isLowerKebab } from "#contracts/text/syntax";
|
|
5
5
|
const LearningGraphSegmentSchema = Schema.String.pipe(Schema.check(Schema.makeFilter(isLowerKebab)));
|
package/dist/math/bounds.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Schema } from "effect";
|
|
2
2
|
import type { FormulaScope } from "#contracts/math/formula/compile";
|
|
3
3
|
import type { PlaneLabelAnchor, PlaneMathFrame, PlaneMathObject } from "#contracts/math/plane";
|
|
4
4
|
import type { SpaceLabelAnchor, SpaceMathFrame, SpaceMathObject, SpaceMathView } from "#contracts/math/space";
|
package/dist/math/collision.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { BigDecimal } from "effect";
|
|
2
2
|
import type { SceneCoordinate } from "#contracts/math/coordinate";
|
|
3
3
|
import type { PlaneMathObject } from "#contracts/math/plane";
|
|
4
4
|
/** Finds reportable scene coordinates that collapse on the same axis. */
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { BigDecimal } from "effect";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
import type { PlanePoint, SceneAxis, SpacePoint } from "#contracts/math/base";
|
|
4
|
+
import type { InfinitePathKind } from "#contracts/math/intersection";
|
|
4
5
|
import type { PlaneMathFrame } from "#contracts/math/plane";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
6
|
+
import type { RenderThreshold } from "#contracts/math/precision";
|
|
7
|
+
import type { ExactRatio } from "#contracts/math/rational";
|
|
7
8
|
import type { SpaceMathFrame } from "#contracts/math/space";
|
|
8
9
|
export declare const ScenePathSchema: Schema.mutable<Schema.$Array<Schema.Union<readonly [Schema.Finite, Schema.String]>>>;
|
|
9
10
|
export type ScenePath = typeof ScenePathSchema.Type;
|
package/dist/math/coordinate.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Array as Arr, Schema } from "effect";
|
|
2
|
-
import { SceneAxisSchema
|
|
2
|
+
import { SceneAxisSchema } from "#contracts/math/base";
|
|
3
3
|
import { AxisTraversalSchema, infinitePathInterval, } from "#contracts/math/intersection";
|
|
4
|
-
import { visiblePathResolvable
|
|
4
|
+
import { visiblePathResolvable } from "#contracts/math/precision";
|
|
5
5
|
import { affineRatio, ExactRatioSchema, numberRatio, } from "#contracts/math/rational";
|
|
6
6
|
export const ScenePathSchema = Schema.mutable(Schema.Array(Schema.Union([Schema.Finite, Schema.String])));
|
|
7
7
|
/** One ordered exact coordinate projected from a complete visual scene. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { FormulaNode } from "#contracts/math/formula/syntax";
|
|
2
2
|
/** The value of every variable and parameter a formula reads, by name. */
|
|
3
3
|
export type FormulaScope = Readonly<Record<string, number>>;
|
|
4
4
|
/** A compiled formula: its value for one scope, or NaN where it is undefined. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Array as Arr } from "effect";
|
|
2
|
-
import { FORMULA_CONSTANTS
|
|
2
|
+
import { FORMULA_CONSTANTS } from "#contracts/math/formula/syntax";
|
|
3
3
|
/** Odd root indexes tried for a negative base, so `x^(1/3)` is real for x < 0. */
|
|
4
4
|
const ODD_ROOTS = [3, 5, 7, 9, 11];
|
|
5
5
|
const ROOT_TOLERANCE = 1e-9;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SampleBox } from "#contracts/math/formula/box";
|
|
2
2
|
import type { SampleBranch } from "#contracts/math/formula/sample";
|
|
3
3
|
/** A field over the plane: its value at one point, NaN where it is undefined. */
|
|
4
4
|
export type SampleField = (x: number, y: number) => number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Array as Arr, MutableHashMap, MutableHashSet, MutableList, Option, Result, Schema, } from "effect";
|
|
2
|
-
import { SamplePointSchema
|
|
2
|
+
import { SamplePointSchema } from "#contracts/math/formula/box";
|
|
3
3
|
/** Cells per frame side, enough for a smooth outline at the largest card size. */
|
|
4
4
|
export const CONTOUR_CELLS = 240;
|
|
5
5
|
/** One grid corner: its key, its point, and the field's value there when defined. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Array as Arr, Result, Schema } from "effect";
|
|
2
2
|
import { MathVisualKeySchema } from "#contracts/math/base";
|
|
3
3
|
import { readFormula, readRelation } from "#contracts/math/formula/parse";
|
|
4
|
-
import { FormulaParameterNameSchema
|
|
4
|
+
import { FormulaParameterNameSchema } from "#contracts/math/formula/syntax";
|
|
5
5
|
/** Passes a formula that reads, or names the problem of one that does not. */
|
|
6
6
|
function readable(read) {
|
|
7
7
|
return (text) => Result.match(read(text), {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import {
|
|
2
|
+
import type { SamplePoint, SampleRange } from "#contracts/math/formula/box";
|
|
3
3
|
/** Cells along each side of a sampled surface. */
|
|
4
4
|
export declare const MESH_CELLS = 96;
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Array as Arr, Option, Schema } from "effect";
|
|
2
|
-
import { SamplePointSchema
|
|
2
|
+
import { SamplePointSchema } from "#contracts/math/formula/box";
|
|
3
3
|
/** Cells along each side of a sampled surface. */
|
|
4
4
|
export const MESH_CELLS = 96;
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { HashSet } from "effect";
|
|
2
|
-
import {
|
|
2
|
+
import type { FormulaNode } from "#contracts/math/formula/syntax";
|
|
3
3
|
/** Every variable and parameter a node reads; constants are left out. */
|
|
4
4
|
export declare function formulaNames(node: FormulaNode): HashSet.HashSet<string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Array as Arr, HashSet } from "effect";
|
|
2
|
-
import { FORMULA_CONSTANTS
|
|
2
|
+
import { FORMULA_CONSTANTS } from "#contracts/math/formula/syntax";
|
|
3
3
|
/** Every variable and parameter a node reads; constants are left out. */
|
|
4
4
|
export function formulaNames(node) {
|
|
5
5
|
if (node.kind === "number") {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Result } from "effect";
|
|
2
|
-
import {
|
|
2
|
+
import type { FormulaError, FormulaNode } from "#contracts/math/formula/syntax";
|
|
3
3
|
/** Reads a formula that is one expression, such as `2x^2 - 3x + 1`. */
|
|
4
4
|
export declare function readFormula(text: string): Result.Result<FormulaNode, FormulaError>;
|
|
5
5
|
/** Reads one equation or inequality, such as `x^2 + y^2 = 4` or `y < 2x + 1`. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Array as Arr, MutableList, Option, Result, Schema } from "effect";
|
|
2
2
|
import { at, expect, finished, here, peek, problemAt, startReader, } from "#contracts/math/formula/reader";
|
|
3
|
-
import { FormulaFunctionSchema
|
|
3
|
+
import { FormulaFunctionSchema } from "#contracts/math/formula/syntax";
|
|
4
4
|
/** How tightly each operator holds its operands; implicit products bind like `*`. */
|
|
5
5
|
const SUM = 10;
|
|
6
6
|
const PRODUCT = 20;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Option, Result, Schema } from "effect";
|
|
2
2
|
import type { PlaneCurveObjectSchemas } from "#contracts/math/curve";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import type { SampleBox, SamplePoint } from "#contracts/math/formula/box";
|
|
4
|
+
import type { FormulaEvaluator, FormulaScope } from "#contracts/math/formula/compile";
|
|
5
5
|
import type { PlaneFormulaPoint } from "#contracts/math/formula/field";
|
|
6
6
|
import type { FormulaError } from "#contracts/math/formula/syntax";
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Array as Arr, Option, Result, Schema } from "effect";
|
|
2
|
-
import { SamplePointSchema
|
|
3
|
-
import { compileFormula
|
|
4
|
-
import { contourLines
|
|
2
|
+
import { SamplePointSchema } from "#contracts/math/formula/box";
|
|
3
|
+
import { compileFormula } from "#contracts/math/formula/compile";
|
|
4
|
+
import { contourLines } from "#contracts/math/formula/contour";
|
|
5
5
|
import { SampleGridSchema } from "#contracts/math/formula/mesh";
|
|
6
6
|
import { readFormula, readRelation } from "#contracts/math/formula/parse";
|
|
7
7
|
import { regionGeometry } from "#contracts/math/formula/region";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Option, Result, Schema } from "effect";
|
|
2
|
-
import {
|
|
2
|
+
import type { FormulaProblem } from "#contracts/math/formula/syntax";
|
|
3
|
+
import { FormulaError } from "#contracts/math/formula/syntax";
|
|
3
4
|
/**
|
|
4
5
|
* The tokens of one formula and the reader's place in them: the token it
|
|
5
6
|
* stands at and how many absolute bars are open around it.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Array as Arr, Option, Result, Schema } from "effect";
|
|
2
|
-
import { FormulaError
|
|
2
|
+
import { FormulaError } from "#contracts/math/formula/syntax";
|
|
3
3
|
import { FormulaTokenSchema, tokenizeFormula, } from "#contracts/math/formula/token";
|
|
4
4
|
/**
|
|
5
5
|
* The tokens of one formula and the reader's place in them: the token it
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Result } from "effect";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { SampleBox } from "#contracts/math/formula/box";
|
|
3
|
+
import type { FormulaScope } from "#contracts/math/formula/compile";
|
|
4
4
|
/** The region where every inequality holds, with each edge marked strict or not. */
|
|
5
5
|
export declare function regionGeometry(inequalities: readonly [string, ...string[]], box: SampleBox, scope: FormulaScope): Result.Result<{
|
|
6
6
|
boundary: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Array as Arr, MutableList, Option, Order, Result, Schema, } from "effect";
|
|
2
|
-
import { SamplePointSchema
|
|
3
|
-
import { compileFormula
|
|
4
|
-
import { contourFill, contourLines
|
|
2
|
+
import { SamplePointSchema } from "#contracts/math/formula/box";
|
|
3
|
+
import { compileFormula } from "#contracts/math/formula/compile";
|
|
4
|
+
import { contourFill, contourLines } from "#contracts/math/formula/contour";
|
|
5
5
|
import { readRelation } from "#contracts/math/formula/parse";
|
|
6
6
|
import { someCell } from "#contracts/math/formula/scan";
|
|
7
7
|
/** How far a boundary piece lies from one inequality's edge, and whether that edge is strict. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SampleBox, SamplePoint, SampleRange } from "#contracts/math/formula/box";
|
|
2
2
|
/** One visible, unbroken run of a sampled curve, in authored coordinates. */
|
|
3
3
|
export type SampleBranch = readonly SamplePoint[];
|
|
4
4
|
/** Where a curve stands for one parameter value; NaN where it is undefined. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SampleBox } from "#contracts/math/formula/box";
|
|
2
|
-
import {
|
|
2
|
+
import type { SampleField } from "#contracts/math/formula/contour";
|
|
3
3
|
/** The field's values at the four corners of one cell, counterclockwise from the bottom left. */
|
|
4
4
|
export type CellValues = readonly [number, number, number, number];
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Array as Arr, MutableHashMap, Option } from "effect";
|
|
2
|
-
import { CONTOUR_CELLS
|
|
2
|
+
import { CONTOUR_CELLS } from "#contracts/math/formula/contour";
|
|
3
3
|
/** The field at every corner of one grid column, bottom to top. */
|
|
4
4
|
function columnValues(field, box, cells, column) {
|
|
5
5
|
const dx = (box.x.max - box.x.min) / cells;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Schema } from "effect";
|
|
2
|
+
import type { FormulaParameter, FormulaReadout } from "#contracts/math/formula/field";
|
|
3
3
|
import type { PlaneLabelAnchor } from "#contracts/math/plane";
|
|
4
4
|
/**
|
|
5
5
|
* Reports every label position or readout formula that reads a name other
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Array as Arr } from "effect";
|
|
2
|
-
import { isPlaneFormulaPoint
|
|
2
|
+
import { isPlaneFormulaPoint } from "#contracts/math/formula/field";
|
|
3
3
|
import { expression, strayIssues } from "#contracts/math/formula/scope";
|
|
4
4
|
/**
|
|
5
5
|
* Reports every label position or readout formula that reads a name other
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Result } from "effect";
|
|
2
2
|
import type { SampleBox } from "#contracts/math/formula/box";
|
|
3
3
|
import type { FormulaScope } from "#contracts/math/formula/compile";
|
|
4
|
-
import {
|
|
4
|
+
import type { FormulaGeometry } from "#contracts/math/formula/plane";
|
|
5
5
|
import type { FormulaError } from "#contracts/math/formula/syntax";
|
|
6
6
|
import type { SpaceSolidObjectSchemas } from "#contracts/math/solid";
|
|
7
7
|
/** The space objects a formula or a face defines. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Array as Arr, Result } from "effect";
|
|
2
2
|
import { sampleGrid } from "#contracts/math/formula/mesh";
|
|
3
|
-
import { compileText, evaluateWith
|
|
3
|
+
import { compileText, evaluateWith } from "#contracts/math/formula/plane";
|
|
4
4
|
import { sampleCurve } from "#contracts/math/formula/sample";
|
|
5
5
|
const FULL_TURN = { max: 2 * Math.PI, min: 0 };
|
|
6
6
|
/** Moves one point by an offset. */
|
package/dist/math/precision.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BigDecimal } from "effect";
|
|
2
2
|
import type { PlanePoint, SpacePoint } from "#contracts/math/base";
|
|
3
3
|
import type { AxisRange } from "#contracts/math/extent";
|
|
4
|
-
import {
|
|
4
|
+
import type { AxisTraversal, InfinitePathKind } from "#contracts/math/intersection";
|
|
5
5
|
export type RenderThreshold = BigDecimal.BigDecimal;
|
|
6
6
|
/** Returns the exact width of one finite authored axis. */
|
|
7
7
|
export declare function axisSpan(range: AxisRange): BigDecimal.BigDecimal;
|
package/dist/math/precision.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BigDecimal, Array as EffectArray, Record as Rec } from "effect";
|
|
2
|
-
import { infinitePathInterval
|
|
2
|
+
import { infinitePathInterval } from "#contracts/math/intersection";
|
|
3
3
|
import { decimal, makeRatio } from "#contracts/math/rational";
|
|
4
4
|
const FLOAT32_RESOLUTION = BigDecimal.fromStringUnsafe("0.00000011920928955078125");
|
|
5
5
|
const TWO = BigDecimal.fromBigInt(2n);
|
package/dist/math/resolution.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Array as Arr, MutableHashMap, Schema } from "effect";
|
|
2
2
|
import { arcCurvatureUnresolved, arcEndpointAxesUnresolved, arcEndpointsUnresolved, } from "#contracts/math/arc";
|
|
3
3
|
import { concentricRadiusCollisionPaths, coordinateCollisionPaths, } from "#contracts/math/collision";
|
|
4
|
-
import { pathAxes, ScenePathSchema
|
|
4
|
+
import { pathAxes, ScenePathSchema } from "#contracts/math/coordinate";
|
|
5
5
|
import { axisEnvelopePairs, axisSpan, measureUnresolved, polygonAltitudeUnresolved, quadraticCurvatureUnresolved, renderThreshold, spanUnresolved, visiblePathResolvable, } from "#contracts/math/precision";
|
|
6
6
|
import { planeSceneCoordinates, spaceSceneCoordinates, } from "#contracts/math/scene";
|
|
7
7
|
import { encodeJsonText } from "#contracts/text/json";
|
package/dist/math/scene.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BigDecimal } from "effect";
|
|
2
|
-
import {
|
|
2
|
+
import type { ScenePath } from "#contracts/math/coordinate";
|
|
3
3
|
import type { PlaneLabelAnchor, PlaneMathFrame, PlaneMathObject } from "#contracts/math/plane";
|
|
4
|
-
import {
|
|
4
|
+
import type { RenderThreshold } from "#contracts/math/precision";
|
|
5
5
|
import type { SpaceLabelAnchor, SpaceMathFrame, SpaceMathObject, SpaceMathView } from "#contracts/math/space";
|
|
6
6
|
/** Owns one stable path for radial geometry-resolution failures. */
|
|
7
7
|
export declare function radialGeometryPath(kind: "arc" | "circle", index: number): ScenePath;
|
package/dist/math/vector.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SpacePoint } from "#contracts/math/base";
|
|
2
2
|
/** Checks a space polygon is planar and has non-zero area. */
|
|
3
3
|
export declare function hasCoplanarArea(vertices: readonly [SpacePoint, SpacePoint, SpacePoint, ...SpacePoint[]]): boolean;
|
package/dist/preview/spec.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
import { GitCommitShaSchema, Sha256HashSchema } from "#contracts/ids";
|
|
3
3
|
import { PreviewArtifactSchema } from "#contracts/preview/artifact";
|
|
4
|
-
import { PreviewDocumentSchema
|
|
4
|
+
import { PreviewDocumentSchema } from "#contracts/preview/document";
|
|
5
5
|
import { PreviewRouteSchema } from "#contracts/preview/target";
|
|
6
6
|
/** Stable protocol implemented by the loopback-only authoring provider. */
|
|
7
7
|
export const LOCAL_PREVIEW_FORMAT = "aksara-local-preview";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import {
|
|
2
|
+
import type { AppLocale } from "#contracts/locale";
|
|
3
3
|
/**
|
|
4
4
|
* Localized public route namespaces shared by projection and verification. A
|
|
5
5
|
* declared locale fails to compile until it names its own namespace here.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Array as Arr, Schema } from "effect";
|
|
2
2
|
import { CorpusSourcePathSchema, PublicPathSchema } from "#contracts/ids";
|
|
3
|
-
import { AppLocaleSchema
|
|
3
|
+
import { AppLocaleSchema } from "#contracts/locale";
|
|
4
4
|
import { MaterialDomainSchema } from "#contracts/material/domain";
|
|
5
5
|
import { LearningProgramKeySchema, ProgramNavigationIconKeySchema, ProgramNavigationLevelSchema, } from "#contracts/program/spec";
|
|
6
6
|
import { MaterialKeySchema } from "#contracts/projection/material";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Effect, Schema, Stream } from "effect";
|
|
2
2
|
import type { ActiveAppLocaleList } from "#contracts/locale";
|
|
3
|
-
import {
|
|
3
|
+
import type { ProgramSnapshotRow } from "#contracts/program/snapshot/row";
|
|
4
4
|
import type { ProgramCounts } from "#contracts/program/snapshot/spec";
|
|
5
5
|
declare const ProgramDigestError_base: Schema.Class<ProgramDigestError, Schema.TaggedStruct<"ProgramDigestError", {
|
|
6
6
|
readonly code: Schema.Literals<readonly ["count", "integrity", "key", "order", "parent", "program", "route", "root", "slug"]>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Array as Arr, Effect, MutableHashMap, MutableHashSet, Option, Schema, Stream, } from "effect";
|
|
2
2
|
import { DigestStream } from "#contracts/hash/stream";
|
|
3
|
-
import { curriculumNamespace
|
|
3
|
+
import { curriculumNamespace } from "#contracts/program/curriculum";
|
|
4
4
|
import { verifyProgramSnapshotRowHash } from "#contracts/program/snapshot/hash";
|
|
5
|
-
import { canonicalizeProgramSnapshotRow
|
|
5
|
+
import { canonicalizeProgramSnapshotRow } from "#contracts/program/snapshot/row";
|
|
6
6
|
import { encodeJsonText } from "#contracts/text/json";
|
|
7
7
|
import { compareCodeUnits } from "#contracts/text/order";
|
|
8
8
|
const DIGEST_DOMAIN = "nakafa.aksara.program-rows";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Effect } from "effect";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { ProgramSnapshotRow } from "#contracts/program/snapshot/row";
|
|
3
|
+
import type { ProgramSnapshot, ProgramSnapshotFacts } from "#contracts/program/snapshot/spec";
|
|
4
4
|
/** Serializes current program facts in stable signed field order. */
|
|
5
5
|
export declare function canonicalizeProgramSnapshot(input: ProgramSnapshotFacts): string;
|
|
6
6
|
/** Creates the content-addressed identity of one complete program snapshot. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect, Stream } from "effect";
|
|
2
|
-
import {
|
|
2
|
+
import type { ContentProjection } from "#contracts/projection/spec";
|
|
3
3
|
/** Keeps the digest stream private while exposing only canonical counters. */
|
|
4
4
|
declare class ProjectionDigestState {
|
|
5
5
|
#private;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Effect, Stream } from "effect";
|
|
2
2
|
import { DigestStream } from "#contracts/hash/stream";
|
|
3
|
-
import { canonicalizeContentProjection
|
|
3
|
+
import { canonicalizeContentProjection } from "#contracts/projection/spec";
|
|
4
4
|
const CONTENT_PROJECTION_DIGEST_DOMAIN = "nakafa.aksara.content-projections";
|
|
5
5
|
/** Keeps the digest stream private while exposing only canonical counters. */
|
|
6
6
|
class ProjectionDigestState {
|
package/dist/projection/hash.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect } from "effect";
|
|
2
2
|
import { hashText } from "#contracts/hash/text";
|
|
3
|
-
import { canonicalizeContentProjection
|
|
3
|
+
import { canonicalizeContentProjection } from "#contracts/projection/spec";
|
|
4
4
|
/** Hashes one canonical projection for authoritative content-head diffing. */
|
|
5
5
|
export const hashContentProjection = Effect.fn("AksaraContracts.hashContentProjection")((projection) => hashText(canonicalizeContentProjection(projection)));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import {
|
|
2
|
+
import type { AppLocale } from "#contracts/locale";
|
|
3
3
|
/** Locale-owned root namespace for public material routes. */
|
|
4
4
|
export declare const MaterialPublicNamespaceSchema: Schema.Literals<readonly ["subjects", "materi", "faecher", "subjek"]>;
|
|
5
5
|
export type MaterialPublicNamespace = typeof MaterialPublicNamespaceSchema.Type;
|
|
@@ -3,7 +3,7 @@ import { ContentAuthorSchema } from "#contracts/content";
|
|
|
3
3
|
import { withPublicationDates } from "#contracts/date";
|
|
4
4
|
import { canonicalizeLearningGraphIdentity, LearningGraphIdentitySchema, } from "#contracts/graph/spec";
|
|
5
5
|
import { ContentKeySchema, PublicPathSchema } from "#contracts/ids";
|
|
6
|
-
import { AppLocaleSchema, ArtifactLocaleSchema
|
|
6
|
+
import { AppLocaleSchema, ArtifactLocaleSchema } from "#contracts/locale";
|
|
7
7
|
import { encodeJsonText } from "#contracts/text/json";
|
|
8
8
|
const MATERIAL_KEY_PATTERN = /^lesson\.[a-z0-9]+(?:-[a-z0-9]+)*\.[a-z0-9]+(?:-[a-z0-9]+)*$/u;
|
|
9
9
|
const SECTION_KEY_PATTERN = /^[a-z0-9]+(?:-[a-z0-9]+)*$/u;
|
|
@@ -2,7 +2,7 @@ import { Effect, MutableHashMap, Option, Schema, Stream } from "effect";
|
|
|
2
2
|
import { compareContentHeads, routeIdentity } from "#contracts/content";
|
|
3
3
|
import { PublicPathSchema } from "#contracts/ids";
|
|
4
4
|
import { digestProjections } from "#contracts/projection/digest";
|
|
5
|
-
import { ContentProjectionSchema
|
|
5
|
+
import { ContentProjectionSchema } from "#contracts/projection/spec";
|
|
6
6
|
import { ReleaseCountSchema } from "#contracts/release/count";
|
|
7
7
|
import { ReleaseCountMismatchFields, ReleaseDigestMismatchFields, } from "#contracts/release/mismatch";
|
|
8
8
|
/** One streamed projection failed strict schema decoding. */
|
package/dist/quran/identity.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import {
|
|
2
|
+
import type { ActiveAppLocaleCode } from "#contracts/locale";
|
|
3
|
+
import { ENGLISH_APP_LOCALE_CODE, GERMAN_APP_LOCALE_CODE, INDONESIAN_APP_LOCALE_CODE, MALAY_APP_LOCALE_CODE } from "#contracts/locale";
|
|
3
4
|
/** Official source identities whose bytes are pinned inside Aksara. */
|
|
4
5
|
export declare const QuranEmbeddedSourceIdSchema: Schema.Literals<readonly ["tanzil-text", "tanzil-metadata", "kemenag-names", "bubenheim-names", "nakafa-malay-names", "quranenc-english", "quranenc-indonesian", "quranenc-german", "quranenc-malay", "quranenc-tafsir"]>;
|
|
5
6
|
export type QuranEmbeddedSourceId = typeof QuranEmbeddedSourceIdSchema.Type;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Effect, Schema } from "effect";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { ActiveAppLocaleList } from "#contracts/locale";
|
|
3
|
+
import type { QuranSourceId } from "#contracts/quran/identity";
|
|
4
4
|
/** Complete source-field vocabulary supported by current Quran publication. */
|
|
5
5
|
export declare const QuranProvenanceScopeSchema: Schema.Union<readonly [Schema.Union<readonly [Schema.Literals<readonly ["arabic-text", "metadata"]>, Schema.Literals<readonly ["en-tafsir-access", "de-tafsir-access", "ms-tafsir-access"]>, Schema.Literal<"id-tafsir">]>, Schema.TemplateLiteral<readonly [Schema.Literals<readonly ["en", "id", "de", "ms"]>, "-surah-name"]>, Schema.TemplateLiteral<readonly [Schema.Literals<readonly ["en", "id", "de", "ms"]>, "-translation"]>]>;
|
|
6
6
|
export type QuranProvenanceScope = typeof QuranProvenanceScopeSchema.Type;
|
package/dist/quran/provenance.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Sha256HashSchema } from "#contracts/ids";
|
|
|
4
4
|
import { ActiveAppLocaleListSchema, activeAppLocaleCode, ENGLISH_APP_LOCALE_CODE, GERMAN_APP_LOCALE_CODE, INDONESIAN_APP_LOCALE_CODE, MALAY_APP_LOCALE_CODE, } from "#contracts/locale";
|
|
5
5
|
import { canonicalizeQuranAttribution } from "#contracts/quran/attribution";
|
|
6
6
|
import { QuranNameProvenanceScopeSchema, QuranTranslationProvenanceScopeSchema, quranNameProvenanceScope, quranNameSourceForScope, quranTafsirSourceId, quranTranslationProvenanceScope, quranTranslationSourceForScope, } from "#contracts/quran/identity";
|
|
7
|
-
import { QuranProvenanceStatusSchema
|
|
7
|
+
import { QuranProvenanceStatusSchema } from "#contracts/quran/snapshot/spec";
|
|
8
8
|
import { hasCompleteQuranSourceCopy, QuranSourceAttributionSchema, } from "#contracts/quran/source";
|
|
9
9
|
import { encodeJsonText } from "#contracts/text/json";
|
|
10
10
|
/** Quran source fields that require independent provenance decisions. */
|