@okfit/engine 0.19.0 → 0.19.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/edits/FrontmatterEdits.js +1 -1
- package/errors.js +1 -1
- package/index.d.ts +2 -2
- package/index.js +9 -9
- package/move/run.js +1 -1
- package/package.json +19 -19
- package/render/distribution.js +1 -1
- package/render/graph.js +1 -1
- package/render/json.js +2 -2
- package/render/move.js +1 -1
- package/render/query.js +1 -1
- package/render/stale.js +1 -1
- package/render/sync.js +2 -2
- package/render/verify.js +1 -1
- package/sync/generated.js +2 -2
- package/sync/run.js +1 -1
- package/tsdoc-metadata.json +1 -1
- package/verify/run.js +3 -3
- package/version.js +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { documentNewline, locate, locateTopLevelScalar, stripBom } from "../verify/locate.js";
|
|
2
1
|
import { formatDigest, locateIntegrity, spliceIntegrityVerified } from "../verify/integrity.js";
|
|
2
|
+
import { documentNewline, locate, locateTopLevelScalar, stripBom } from "../verify/locate.js";
|
|
3
3
|
import { orderVerifyEdits, splice, spliceTopLevelScalar } from "../verify/splice.js";
|
|
4
4
|
import { DiagnosticRange } from "@okfit/core";
|
|
5
5
|
import { Effect, Result, Runtime, Schema } from "effect";
|
package/errors.js
CHANGED
package/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { FrontmatterWriteError, MarkdownEdit, MarkdownParseError } from "@effect
|
|
|
7
7
|
import { YamlParseError } from "@effected/yaml";
|
|
8
8
|
import { Digest } from "effect/crypto";
|
|
9
9
|
import * as NodeServices from "@effect/platform-node/NodeServices";
|
|
10
|
-
import { Distribution as Distribution$1 } from "@effected/
|
|
10
|
+
import { Distribution as Distribution$1 } from "@effected/kit";
|
|
11
11
|
import { Git, GitCommandError, UnknownRefError } from "@effected/git";
|
|
12
12
|
/**
|
|
13
13
|
* What {@link resolveProjectRoot} needs about the winning discovery source
|
|
@@ -1148,7 +1148,7 @@ export declare const contextEnvelope: (input: {
|
|
|
1148
1148
|
* reports; `engine_version` and `okf_version` are the pair a reader
|
|
1149
1149
|
* compares.
|
|
1150
1150
|
*
|
|
1151
|
-
* Re-exported from `@effected/
|
|
1151
|
+
* Re-exported from `@effected/kit`'s own `Distribution` -- the shape
|
|
1152
1152
|
* both `@okfit/cli`'s `CurrentDistribution` (K-137/carrier-version-threading)
|
|
1153
1153
|
* and every JSON envelope in this package agree on, instead of two
|
|
1154
1154
|
* independently hand-rolled `{ name, version }` structs drifting apart.
|
package/index.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { resolveBundleRoot, resolveProjectRoot } from "./config/anchor.js";
|
|
2
|
-
import { ConfigMalformedError, ConfigPathNotFoundError, DocumentPathError, InitOverwriteError, MoveError, QueryConceptNotFoundError, QuerySelectionError, QueryUnknownVocabularyError, SyncPlanStaleError, SyncPublicationConflictError, TargetFailure, TargetResolutionError, VerifyConceptNotFoundError, VerifyContentUnhashableError, VerifyNothingToRevokeError, VerifySelectionError, VerifyUnsupportedFrontmatterError } from "./errors.js";
|
|
3
2
|
import { buildConfigLayer, provideConfig } from "./config/layer.js";
|
|
4
3
|
import { DEFAULT_PROFILE_NAME, resolveProjectConfig } from "./config/resolve.js";
|
|
5
4
|
import { runContext } from "./context/run.js";
|
|
6
5
|
import { FrontmatterEdits, UnsupportedFrontmatterError } from "./edits/FrontmatterEdits.js";
|
|
6
|
+
import { ConfigMalformedError, ConfigPathNotFoundError, DocumentPathError, InitOverwriteError, MoveError, QueryConceptNotFoundError, QuerySelectionError, QueryUnknownVocabularyError, SyncPlanStaleError, SyncPublicationConflictError, TargetFailure, TargetResolutionError, VerifyConceptNotFoundError, VerifyContentUnhashableError, VerifyNothingToRevokeError, VerifySelectionError, VerifyUnsupportedFrontmatterError } from "./errors.js";
|
|
7
7
|
import { ExternalReferences, ReferenceCheck, ReferenceState } from "./external/ExternalReferences.js";
|
|
8
8
|
import { runGraph } from "./graph/run.js";
|
|
9
9
|
import { CONFIG_RELATIVE_PATH, configValue, files, targetPaths } from "./init/scaffold.js";
|
|
10
10
|
import { referencesOf, rewriteReference } from "./move/references.js";
|
|
11
|
-
import { Targets } from "./targets/resolve.js";
|
|
12
11
|
import { planMove, runMove } from "./move/run.js";
|
|
13
|
-
import { OverlayDocuments, layerOverlayFileSystem, makeOverlayFileSystem } from "./overlay/layer.js";
|
|
14
12
|
import { provideDocuments, resolveDocumentPath } from "./overlay/documents.js";
|
|
13
|
+
import { OverlayDocuments, layerOverlayFileSystem, makeOverlayFileSystem } from "./overlay/layer.js";
|
|
15
14
|
import { OkfitPlatform } from "./platform.js";
|
|
16
15
|
import { ConceptQuery } from "./query/ConceptQuery.js";
|
|
17
16
|
import { ContextEnvelope, ContextField, ContextFieldValue, ContextTag, ContextTrust, ContextType, contextEnvelope } from "./render/context.js";
|
|
18
17
|
import { DistributionField } from "./render/distribution.js";
|
|
19
18
|
import { forDiagnostics, tally } from "./render/exit.js";
|
|
20
|
-
import { ENGINE_VERSION } from "./version.js";
|
|
21
19
|
import { GraphEdgeEnvelope, GraphEnvelope, GraphNodeEnvelope, GraphSummary, graphEnvelope } from "./render/graph.js";
|
|
22
|
-
import { collect, sort } from "./render/sort.js";
|
|
23
20
|
import { JsonDiagnostic, JsonEnvelope, JsonErrorEnvelope, JsonSummary, json, jsonError } from "./render/json.js";
|
|
24
21
|
import { MoveEnvelope, moveEnvelope } from "./render/move.js";
|
|
25
22
|
import { ConceptSummary, QueryGetEnvelope, QueryLink, QueryListEnvelope, QueryNeighbor, QueryNeighborsEnvelope, TrustDrift, queryGetEnvelope, queryListEnvelope, queryNeighborsEnvelope, signalFor, toConceptSummary, toTrustDrift } from "./render/query.js";
|
|
23
|
+
import { collect, sort } from "./render/sort.js";
|
|
26
24
|
import { StaleEnvelope, StaleItem, StaleSummary, staleEnvelope } from "./render/stale.js";
|
|
27
|
-
import { SkipReason, applySyncPlan, planSync, runSync } from "./sync/run.js";
|
|
28
25
|
import { PublicationEnvelope, SyncEnvelope, SyncModeEnvelope, syncEnvelope } from "./render/sync.js";
|
|
29
26
|
import { RevokeEnvelope, VerifyBatchEnvelope, VerifyEnvelope, revokeEnvelope, verifyBatchEnvelope, verifyEnvelope } from "./render/verify.js";
|
|
30
|
-
import {
|
|
27
|
+
import { BundleSession } from "./session/BundleSession.js";
|
|
31
28
|
import { conceptFor } from "./session/concept.js";
|
|
32
29
|
import { withFallbackRange } from "./session/range.js";
|
|
33
|
-
import { BundleSession } from "./session/BundleSession.js";
|
|
34
30
|
import { runStale } from "./stale/run.js";
|
|
35
31
|
import { NotAPublicationError, PublicationNotFoundError, stampPublication } from "./sync/publication.js";
|
|
32
|
+
import { SkipReason, applySyncPlan, planSync, runSync } from "./sync/run.js";
|
|
33
|
+
import { Targets } from "./targets/resolve.js";
|
|
36
34
|
import { runContextTrust } from "./trust/run.js";
|
|
35
|
+
import { Now, run } from "./validate/run.js";
|
|
37
36
|
import { changeSince } from "./verify/diff.js";
|
|
38
|
-
import { resolveBatchTypes, selectAttestable, selectPickerCandidates, selectStaleCandidates } from "./verify/select.js";
|
|
39
37
|
import { inspectDrift, loadPickerCandidates, loadPreviews, loadStaleCandidates, runRevoke, runRevokeIds, runVerify, runVerifyBatch, runVerifyIds } from "./verify/run.js";
|
|
38
|
+
import { resolveBatchTypes, selectAttestable, selectPickerCandidates, selectStaleCandidates } from "./verify/select.js";
|
|
39
|
+
import { ENGINE_VERSION } from "./version.js";
|
|
40
40
|
|
|
41
41
|
export { BundleSession, CONFIG_RELATIVE_PATH, ConceptQuery, ConceptSummary, ConfigMalformedError, ConfigPathNotFoundError, ContextEnvelope, ContextField, ContextFieldValue, ContextTag, ContextTrust, ContextType, DEFAULT_PROFILE_NAME, DistributionField, DocumentPathError, ENGINE_VERSION, ExternalReferences, FrontmatterEdits, GraphEdgeEnvelope, GraphEnvelope, GraphNodeEnvelope, GraphSummary, InitOverwriteError, JsonDiagnostic, JsonEnvelope, JsonErrorEnvelope, JsonSummary, MoveEnvelope, MoveError, NotAPublicationError, Now, OkfitPlatform, OverlayDocuments, PublicationEnvelope, PublicationNotFoundError, QueryConceptNotFoundError, QueryGetEnvelope, QueryLink, QueryListEnvelope, QueryNeighbor, QueryNeighborsEnvelope, QuerySelectionError, QueryUnknownVocabularyError, ReferenceCheck, ReferenceState, RevokeEnvelope, SkipReason, StaleEnvelope, StaleItem, StaleSummary, SyncEnvelope, SyncModeEnvelope, SyncPlanStaleError, SyncPublicationConflictError, TargetFailure, TargetResolutionError, Targets, TrustDrift, UnsupportedFrontmatterError, VerifyBatchEnvelope, VerifyConceptNotFoundError, VerifyContentUnhashableError, VerifyEnvelope, VerifyNothingToRevokeError, VerifySelectionError, VerifyUnsupportedFrontmatterError, applySyncPlan, buildConfigLayer, changeSince, collect, conceptFor, configValue, contextEnvelope, files, forDiagnostics, graphEnvelope, inspectDrift, json, jsonError, layerOverlayFileSystem, loadPickerCandidates, loadPreviews, loadStaleCandidates, makeOverlayFileSystem, moveEnvelope, planMove, planSync, provideConfig, provideDocuments, queryGetEnvelope, queryListEnvelope, queryNeighborsEnvelope, referencesOf, resolveBatchTypes, resolveBundleRoot, resolveDocumentPath, resolveProjectConfig, resolveProjectRoot, revokeEnvelope, rewriteReference, run, runContext, runContextTrust, runGraph, runMove, runRevoke, runRevokeIds, runStale, runSync, runVerify, runVerifyBatch, runVerifyIds, selectAttestable, selectPickerCandidates, selectStaleCandidates, signalFor, sort, staleEnvelope, stampPublication, syncEnvelope, tally, targetPaths, toConceptSummary, toTrustDrift, verifyBatchEnvelope, verifyEnvelope, withFallbackRange };
|
package/move/run.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MoveError } from "../errors.js";
|
|
2
|
-
import { referencesOf, rewriteReference } from "./references.js";
|
|
3
2
|
import { writeAtomic } from "../sync/write.js";
|
|
4
3
|
import { Targets } from "../targets/resolve.js";
|
|
4
|
+
import { referencesOf, rewriteReference } from "./references.js";
|
|
5
5
|
import { Bundle, ConceptId } from "@okfit/core";
|
|
6
6
|
import { Effect, FileSystem, Option, Path } from "effect";
|
|
7
7
|
import { Trust } from "@okfit/profiles";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okfit/engine",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The okfit engine: platform layer, config discovery, and the validate, verify, sync, init and context programs shared by the okfit CLI and MCP server.",
|
|
6
6
|
"keywords": [
|
|
@@ -34,24 +34,24 @@
|
|
|
34
34
|
"./package.json": "./package.json"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@effect/platform-node": "~4.1.
|
|
38
|
-
"@effected/app": "^0.
|
|
39
|
-
"@effected/config-file": "^0.
|
|
40
|
-
"@effected/
|
|
41
|
-
"@effected/
|
|
42
|
-
"@effected/
|
|
43
|
-
"@effected/
|
|
44
|
-
"@effected/markdown": "^0.
|
|
45
|
-
"@effected/schemastore": "^0.
|
|
46
|
-
"@effected/source": "^0.
|
|
47
|
-
"@effected/store": "^0.
|
|
48
|
-
"@effected/toml": "^0.
|
|
49
|
-
"@effected/walker": "^0.
|
|
50
|
-
"@effected/xdg": "^0.
|
|
51
|
-
"@effected/yaml": "^0.
|
|
52
|
-
"@okfit/core": "0.12.
|
|
53
|
-
"@okfit/profiles": "0.14.
|
|
54
|
-
"effect": "~4.1.
|
|
37
|
+
"@effect/platform-node": "~4.1.2",
|
|
38
|
+
"@effected/app": "^0.31.0",
|
|
39
|
+
"@effected/config-file": "^0.24.0",
|
|
40
|
+
"@effected/git": "^0.30.0",
|
|
41
|
+
"@effected/glob": "^0.18.0",
|
|
42
|
+
"@effected/jsonc": "^0.23.0",
|
|
43
|
+
"@effected/kit": "^0.12.0",
|
|
44
|
+
"@effected/markdown": "^0.26.0",
|
|
45
|
+
"@effected/schemastore": "^0.29.0",
|
|
46
|
+
"@effected/source": "^0.3.0",
|
|
47
|
+
"@effected/store": "^0.23.0",
|
|
48
|
+
"@effected/toml": "^0.19.0",
|
|
49
|
+
"@effected/walker": "^0.25.0",
|
|
50
|
+
"@effected/xdg": "^0.19.0",
|
|
51
|
+
"@effected/yaml": "^0.28.0",
|
|
52
|
+
"@okfit/core": "0.12.1",
|
|
53
|
+
"@okfit/profiles": "0.14.1",
|
|
54
|
+
"effect": "~4.1.2"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": ">=24.11.0"
|
package/render/distribution.js
CHANGED
package/render/graph.js
CHANGED
package/render/json.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { ENGINE_VERSION } from "../version.js";
|
|
1
2
|
import { DistributionField as DistributionField$1 } from "./distribution.js";
|
|
2
3
|
import { tally } from "./exit.js";
|
|
3
|
-
import { ENGINE_VERSION } from "../version.js";
|
|
4
4
|
import { sort } from "./sort.js";
|
|
5
5
|
import { DiagnosticRange, DiagnosticSeverity } from "@okfit/core";
|
|
6
6
|
import { Runtime, Schema } from "effect";
|
|
7
|
-
import { ErrorText } from "@effected/
|
|
7
|
+
import { ErrorText } from "@effected/kit";
|
|
8
8
|
|
|
9
9
|
// src/render/json.ts
|
|
10
10
|
/** One entry of the `diagnostics` array (K-21). @public */
|
package/render/move.js
CHANGED
package/render/query.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DistributionField } from "./distribution.js";
|
|
2
1
|
import { ENGINE_VERSION } from "../version.js";
|
|
2
|
+
import { DistributionField } from "./distribution.js";
|
|
3
3
|
import { Derive, GraphNodeKind, Status } from "@okfit/core";
|
|
4
4
|
import { Schema } from "effect";
|
|
5
5
|
import { DriftReason } from "@okfit/profiles";
|
package/render/stale.js
CHANGED
package/render/sync.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DistributionField } from "./distribution.js";
|
|
2
|
-
import { ENGINE_VERSION } from "../version.js";
|
|
3
1
|
import { SkipReason } from "../sync/run.js";
|
|
2
|
+
import { ENGINE_VERSION } from "../version.js";
|
|
3
|
+
import { DistributionField } from "./distribution.js";
|
|
4
4
|
import { Schema } from "effect";
|
|
5
5
|
|
|
6
6
|
// src/render/sync.ts
|
package/render/verify.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DistributionField } from "./distribution.js";
|
|
2
1
|
import { ENGINE_VERSION } from "../version.js";
|
|
2
|
+
import { DistributionField } from "./distribution.js";
|
|
3
3
|
import { Status } from "@okfit/core";
|
|
4
4
|
import { Schema } from "effect";
|
|
5
5
|
import { DriftReason } from "@okfit/profiles";
|
package/sync/generated.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FrontmatterEdits } from "../edits/FrontmatterEdits.js";
|
|
2
2
|
import { locateIntegrity, locateLegacyBodySha256, removeLine, spliceIntegrityGenerated } from "../verify/integrity.js";
|
|
3
|
+
import { detectNewline, locateGenerated, locateGeneratedBlock, stripBom } from "../verify/locate.js";
|
|
3
4
|
import { mergeSameOffset, spliceGenerated, spliceGeneratedBlock } from "../verify/splice.js";
|
|
4
|
-
import { FrontmatterEdits } from "../edits/FrontmatterEdits.js";
|
|
5
5
|
import { writeAtomic } from "./write.js";
|
|
6
6
|
import { Timestamp } from "@okfit/core";
|
|
7
7
|
import { Effect, FileSystem, Path, Schema } from "effect";
|
package/sync/run.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SyncPlanStaleError } from "../errors.js";
|
|
2
|
-
import { writeAtomic } from "./write.js";
|
|
3
2
|
import { syncGenerated } from "./generated.js";
|
|
4
3
|
import { syncIndex } from "./index.js";
|
|
5
4
|
import { logWindow, syncLog, wantsLogEntry } from "./log.js";
|
|
5
|
+
import { writeAtomic } from "./write.js";
|
|
6
6
|
import { Bundle, Derive } from "@okfit/core";
|
|
7
7
|
import { DateTime, Effect, FileSystem, Option, Path, Schema } from "effect";
|
|
8
8
|
import { Derivation } from "@okfit/profiles";
|
package/tsdoc-metadata.json
CHANGED
package/verify/run.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { VerifyConceptNotFoundError, VerifyContentUnhashableError, VerifyNothingToRevokeError, VerifyUnsupportedFrontmatterError } from "../errors.js";
|
|
2
|
-
import { documentNewline, locate, locateTopLevelScalar, locateVerifiedAt, stripBom } from "./locate.js";
|
|
3
|
-
import { locateIntegrity, removeIntegrityVerified, spliceIntegrityVerified } from "./integrity.js";
|
|
4
|
-
import { orderVerifyEdits, quoteLike, splice, spliceTopLevelScalar } from "./splice.js";
|
|
5
2
|
import { changeSince } from "./diff.js";
|
|
3
|
+
import { locateIntegrity, removeIntegrityVerified, spliceIntegrityVerified } from "./integrity.js";
|
|
4
|
+
import { documentNewline, locate, locateTopLevelScalar, locateVerifiedAt, stripBom } from "./locate.js";
|
|
6
5
|
import { locateVerifiedEntries } from "./revoke.js";
|
|
7
6
|
import { resolveBatchTypes, selectAttestable, selectPickerCandidates, selectStaleCandidates } from "./select.js";
|
|
7
|
+
import { orderVerifyEdits, quoteLike, splice, spliceTopLevelScalar } from "./splice.js";
|
|
8
8
|
import { Bundle, ConceptId, Derive, Timestamp } from "@okfit/core";
|
|
9
9
|
import { DateTime, Effect, FileSystem, Option, Path, Schema } from "effect";
|
|
10
10
|
import { Derivation, Trust } from "@okfit/profiles";
|