@hawkeyexl/manni 2.3.8 → 2.3.10

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/docmeta.js CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  buildProgram
4
- } from "./chunk-L73SKPCW.js";
4
+ } from "./chunk-WXBLVCOZ.js";
5
5
  import {
6
6
  runIfMain
7
- } from "./chunk-EYD2RYKV.js";
7
+ } from "./chunk-TNT3ZROC.js";
8
8
 
9
9
  // src/docmeta.ts
10
10
  runIfMain(import.meta.url, () => buildProgram().name("docmeta"));
package/dist/index.d.ts CHANGED
@@ -1077,7 +1077,10 @@ interface RunConfigOptions {
1077
1077
  noConfig?: boolean;
1078
1078
  /**
1079
1079
  * Positional inputs; empty means fall back to the configured collections'
1080
- * `paths:` (proposal 0041).
1080
+ * `paths:` (proposal 0041). The stdin token `-` cancels that implicit
1081
+ * fallback like any other input, but never an explicit `--collection`:
1082
+ * stdin is no path, so it rides beside the flag and the named collection is
1083
+ * still resolved.
1081
1084
  */
1082
1085
  inputs: string[];
1083
1086
  /**
@@ -1094,7 +1097,8 @@ interface RunConfig {
1094
1097
  config: DocmetaConfig | null;
1095
1098
  /**
1096
1099
  * What to resolve: the positional inputs, or the selected collections'
1097
- * `paths:`, concatenated in declaration order.
1100
+ * `paths:` concatenated in declaration order — with the stdin token, when
1101
+ * `--collection` put both in one run, kept at the front.
1098
1102
  */
1099
1103
  inputs: string[];
1100
1104
  /**
@@ -1105,7 +1109,9 @@ interface RunConfig {
1105
1109
  * both, so there is exactly one base per run and no ambiguity about which it
1106
1110
  * is. Positional paths are typed by a person standing in a shell, so they
1107
1111
  * stay relative to the working directory; a collection's globs were written
1108
- * next to the config, so they resolve from there.
1112
+ * next to the config, so they resolve from there. Stdin decides nothing
1113
+ * here: it is no path, so it needs no base of its own, and a `-` beside
1114
+ * `--collection` leaves the base to the collections.
1109
1115
  */
1110
1116
  base: string;
1111
1117
  /**
@@ -1155,9 +1161,10 @@ interface RunConfig {
1155
1161
  */
1156
1162
  declaredCollections: CollectionConfig[];
1157
1163
  /**
1158
- * Whether `inputs` came from the collections rather than the command line.
1164
+ * Whether the collections supplied `inputs` rather than the command line.
1159
1165
  * The corpus invariant every scoped check reads: a positional path means the
1160
- * operator chose part of the corpus.
1166
+ * operator chose part of the corpus. True whenever `--collection` named one,
1167
+ * stdin beside it included.
1161
1168
  */
1162
1169
  fromCollections: boolean;
1163
1170
  /**
@@ -3872,6 +3879,12 @@ interface AddResult {
3872
3879
  claimLines?: PageLines;
3873
3880
  /** File line of the marker written above the claim, under `marker`. */
3874
3881
  markerLine?: number;
3882
+ /**
3883
+ * The first pinned source line, as the file holds it, so a mis-typed range
3884
+ * is visible at write time. Absent for a whole file, which has no first
3885
+ * line worth naming, and for an encrypted source, which no output reveals.
3886
+ */
3887
+ sourceLine?: string;
3875
3888
  /** The rewritten page. */
3876
3889
  content: string;
3877
3890
  diff: string;
@@ -4087,6 +4100,12 @@ declare function shortCommit(commit: string): string;
4087
4100
  * plain path is spelled in full, because that is what a reader has to find.
4088
4101
  */
4089
4102
  declare function shortSrc(src: string): string;
4103
+ /**
4104
+ * A line of a file as a report quotes it: whitespace collapsed to single
4105
+ * spaces, then sixty characters and an ellipsis. The report is one line, so
4106
+ * neither an indented source line nor a long one decides how it reads.
4107
+ */
4108
+ declare function shortLine(text: string): string;
4090
4109
 
4091
4110
  interface BuildIndexOptions {
4092
4111
  /** `git ls-files` when this client reports git available; a walk when it does not, or with no client. */
@@ -4646,7 +4665,12 @@ interface CiteRunOptions {
4646
4665
  configPath?: string;
4647
4666
  /** `--no-config`: skip discovery and run on the built-in defaults. */
4648
4667
  noConfig?: boolean;
4649
- /** Positional inputs; empty means fall back to the selected collections' `paths:`. */
4668
+ /**
4669
+ * Positional inputs; empty means fall back to the selected collections'
4670
+ * `paths:`. The stdin token `-` cancels that implicit fallback like any
4671
+ * other input, but never an explicit `--collection`: stdin is no path, so
4672
+ * it rides beside the flag and the named collection is still resolved.
4673
+ */
4650
4674
  inputs: string[];
4651
4675
  /**
4652
4676
  * `--collection <name>`, repeatable: the collections this run covers. Empty
@@ -4937,6 +4961,7 @@ declare const index$1_runAdd: typeof runAdd;
4937
4961
  declare const index$1_runCheck: typeof runCheck;
4938
4962
  declare const index$1_runUpdate: typeof runUpdate;
4939
4963
  declare const index$1_shortCommit: typeof shortCommit;
4964
+ declare const index$1_shortLine: typeof shortLine;
4940
4965
  declare const index$1_shortPin: typeof shortPin;
4941
4966
  declare const index$1_shortSrc: typeof shortSrc;
4942
4967
  declare const index$1_sidecarsFor: typeof sidecarsFor;
@@ -4957,7 +4982,7 @@ declare const index$1_unitAt: typeof unitAt;
4957
4982
  declare const index$1_urlManifestRefusal: typeof urlManifestRefusal;
4958
4983
  declare const index$1_validateEntry: typeof validateEntry;
4959
4984
  declare namespace index$1 {
4960
- export { type index$1_AddOptions as AddOptions, type index$1_AddResult as AddResult, type index$1_BuildIndexOptions as BuildIndexOptions, index$1_CITATIONS_KEY as CITATIONS_KEY, index$1_CITE_RULES as CITE_RULES, index$1_CITE_SECTION as CITE_SECTION, type index$1_CheckOptions as CheckOptions, type index$1_CheckPageOptions as CheckPageOptions, type index$1_CheckRun as CheckRun, type index$1_Citation as Citation, type index$1_CitationAnchor as CitationAnchor, type index$1_CitationClaim as CitationClaim, type index$1_CitationFinding as CitationFinding, type index$1_CitationInput as CitationInput, type index$1_CitationManifest as CitationManifest, type index$1_CitationOrigin as CitationOrigin, type index$1_CitationResult as CitationResult, type index$1_CitationSidecars as CitationSidecars, type index$1_CitationSource as CitationSource, type index$1_CiteConfig as CiteConfig, index$1_CiteError as CiteError, type index$1_CiteRule as CiteRule, type index$1_CiteRun as CiteRun, type index$1_CiteRunOptions as CiteRunOptions, type index$1_CiteSeverity as CiteSeverity, type index$1_ClaimEnd as ClaimEnd, type index$1_ClaimStatus as ClaimStatus, type index$1_ClaimUnit as ClaimUnit, type index$1_ClassifyOptions as ClassifyOptions, index$1_DEFAULT_CITE_BASELINE_PATH as DEFAULT_CITE_BASELINE_PATH, index$1_DEFAULT_SEVERITY as DEFAULT_SEVERITY, type index$1_EntryPath as EntryPath, index$1_FILE_PATTERN as FILE_PATTERN, type index$1_FindWindowsOptions as FindWindowsOptions, index$1_GIT_UNAVAILABLE_COMMIT as GIT_UNAVAILABLE_COMMIT, index$1_GIT_UNAVAILABLE_HISTORY as GIT_UNAVAILABLE_HISTORY, type index$1_GitClient as GitClient, type index$1_HeldManifest as HeldManifest, type index$1_History as History, type index$1_InlineStatement as InlineStatement, type index$1_LineSpec as LineSpec, type index$1_LoadSidecarOptions as LoadSidecarOptions, type index$1_LoadedCiteConfig as LoadedCiteConfig, index$1_MARKER_JSON as MARKER_JSON, index$1_MAX_MARKERS_PER_PAGE as MAX_MARKERS_PER_PAGE, index$1_MAX_RANGE_LINES as MAX_RANGE_LINES, index$1_MOVE_BUDGET_BYTES as MOVE_BUDGET_BYTES, index$1_MOVE_WINDOW_LINES as MOVE_WINDOW_LINES, type index$1_ManifestChange as ManifestChange, index$1_ManifestSet as ManifestSet, type index$1_ManifestWrite as ManifestWrite, type index$1_MintOptions as MintOptions, type index$1_MissingReason as MissingReason, type index$1_OriginKind as OriginKind, type index$1_PageCitation as PageCitation, type index$1_PageCitationReport as PageCitationReport, type index$1_PageCitations as PageCitations, type index$1_PageLines as PageLines, type index$1_PageSidecar as PageSidecar, type index$1_PrettyOptions as PrettyOptions, index$1_RULE_ID_PREFIX as RULE_ID_PREFIX, type index$1_ReadPageOptions as ReadPageOptions, type index$1_ReadSourceResult as ReadSourceResult, type index$1_ReencryptCitationsResult as ReencryptCitationsResult, type index$1_ReencryptEntriesResult as ReencryptEntriesResult, type index$1_ReencryptOptions as ReencryptOptions, type index$1_ReencryptedCitation as ReencryptedCitation, index$1_SRC_PATTERN as SRC_PATTERN, type index$1_ShownFile as ShownFile, type index$1_SourceEnd as SourceEnd, type index$1_SourceIndex as SourceIndex, type index$1_SourceRange as SourceRange, type index$1_SourceStatus as SourceStatus, type index$1_StatementForm as StatementForm, type index$1_UpdateOptions as UpdateOptions, type index$1_UpdatePage as UpdatePage, type index$1_UpdateRewrite as UpdateRewrite, type index$1_UpdateRun as UpdateRun, index$1_anchoredLines as anchoredLines, index$1_appendFrontmatterCitation as appendFrontmatterCitation, index$1_blockMatches as blockMatches, index$1_bodyLineOf as bodyLineOf, index$1_buildSourceIndex as buildSourceIndex, index$1_checkCitations as checkCitations, index$1_claimEnd as claimEnd, index$1_claimLine as claimLine, index$1_claimMessageFor as claimMessageFor, index$1_classifyCitation as classifyCitation, index$1_detectEol as detectEol, index$1_duplicateJoinRefusal as duplicateJoinRefusal, index$1_entryObject as entryObject, index$1_errorSite as errorSite, index$1_fenceSpanAt as fenceSpanAt, index$1_fencedBlockAfter as fencedBlockAfter, index$1_fencedBlockAt as fencedBlockAt, index$1_fencedBlocks as fencedBlocks, index$1_findWindows as findWindows, index$1_findingsFor as findingsFor, index$1_formatSrc as formatSrc, index$1_formatStatement as formatStatement, index$1_gitClient as gitClient, index$1_hashLines as hashLines, index$1_hashRange as hashRange, index$1_historyOf as historyOf, index$1_insertStatementBefore as insertStatementBefore, index$1_insideFence as insideFence, index$1_isCiteRule as isCiteRule, index$1_isKeyedPin as isKeyedPin, index$1_itemLine as itemLine, index$1_lineAt as lineAt, index$1_lineSpec as lineSpec, index$1_loadCitationSidecars as loadCitationSidecars, index$1_loadCiteConfig as loadCiteConfig, index$1_markerUnit as markerUnit, index$1_messageFor as messageFor, index$1_mintCitation as mintCitation, index$1_noGit as noGit, index$1_normalizeText as normalizeText, index$1_normalizeWhitespace as normalizeWhitespace, index$1_offsetOfLine as offsetOfLine, index$1_orphanRefusal as orphanRefusal, index$1_ownedMessage as ownedMessage, index$1_paragraphAfter as paragraphAfter, index$1_parseCiteConfig as parseCiteConfig, index$1_parseLines as parseLines, index$1_parseSrc as parseSrc, index$1_parseStatements as parseStatements, index$1_pickExtractor as pickExtractor, index$1_pinOfLines as pinOfLines, index$1_rangeLines as rangeLines, index$1_readCiteConfigFile as readCiteConfigFile, index$1_readPage as readPage, index$1_readSource as readSource, index$1_reencryptCitationEntries as reencryptCitationEntries, index$1_reencryptCitations as reencryptCitations, index$1_renderCheckGithub as renderCheckGithub, index$1_renderCheckJson as renderCheckJson, index$1_renderCheckPretty as renderCheckPretty, index$1_renderUpdateJson as renderUpdateJson, index$1_renderUpdatePretty as renderUpdatePretty, index$1_resolveCiteRun as resolveCiteRun, index$1_resolveSeverity as resolveSeverity, index$1_rewriteLine as rewriteLine, index$1_ruleId as ruleId, index$1_runAdd as runAdd, index$1_runCheck as runCheck, index$1_runUpdate as runUpdate, index$1_shortCommit as shortCommit, index$1_shortPin as shortPin, index$1_shortSrc as shortSrc, index$1_sidecarsFor as sidecarsFor, index$1_sliceLines as sliceLines, index$1_sourceRange as sourceRange, index$1_spellLines as spellLines, index$1_spellSource as spellSource, index$1_splice as splice, index$1_spliceEntryField as spliceEntryField, index$1_splitLines as splitLines, index$1_statementForms as statementForms, index$1_toBodyLines as toBodyLines, index$1_toFileLines as toFileLines, index$1_toValidationResult as toValidationResult, index$1_twoManifestsRefusal as twoManifestsRefusal, index$1_unifiedDiff as unifiedDiff, index$1_unitAt as unitAt, index$1_urlManifestRefusal as urlManifestRefusal, index$1_validateEntry as validateEntry };
4985
+ export { type index$1_AddOptions as AddOptions, type index$1_AddResult as AddResult, type index$1_BuildIndexOptions as BuildIndexOptions, index$1_CITATIONS_KEY as CITATIONS_KEY, index$1_CITE_RULES as CITE_RULES, index$1_CITE_SECTION as CITE_SECTION, type index$1_CheckOptions as CheckOptions, type index$1_CheckPageOptions as CheckPageOptions, type index$1_CheckRun as CheckRun, type index$1_Citation as Citation, type index$1_CitationAnchor as CitationAnchor, type index$1_CitationClaim as CitationClaim, type index$1_CitationFinding as CitationFinding, type index$1_CitationInput as CitationInput, type index$1_CitationManifest as CitationManifest, type index$1_CitationOrigin as CitationOrigin, type index$1_CitationResult as CitationResult, type index$1_CitationSidecars as CitationSidecars, type index$1_CitationSource as CitationSource, type index$1_CiteConfig as CiteConfig, index$1_CiteError as CiteError, type index$1_CiteRule as CiteRule, type index$1_CiteRun as CiteRun, type index$1_CiteRunOptions as CiteRunOptions, type index$1_CiteSeverity as CiteSeverity, type index$1_ClaimEnd as ClaimEnd, type index$1_ClaimStatus as ClaimStatus, type index$1_ClaimUnit as ClaimUnit, type index$1_ClassifyOptions as ClassifyOptions, index$1_DEFAULT_CITE_BASELINE_PATH as DEFAULT_CITE_BASELINE_PATH, index$1_DEFAULT_SEVERITY as DEFAULT_SEVERITY, type index$1_EntryPath as EntryPath, index$1_FILE_PATTERN as FILE_PATTERN, type index$1_FindWindowsOptions as FindWindowsOptions, index$1_GIT_UNAVAILABLE_COMMIT as GIT_UNAVAILABLE_COMMIT, index$1_GIT_UNAVAILABLE_HISTORY as GIT_UNAVAILABLE_HISTORY, type index$1_GitClient as GitClient, type index$1_HeldManifest as HeldManifest, type index$1_History as History, type index$1_InlineStatement as InlineStatement, type index$1_LineSpec as LineSpec, type index$1_LoadSidecarOptions as LoadSidecarOptions, type index$1_LoadedCiteConfig as LoadedCiteConfig, index$1_MARKER_JSON as MARKER_JSON, index$1_MAX_MARKERS_PER_PAGE as MAX_MARKERS_PER_PAGE, index$1_MAX_RANGE_LINES as MAX_RANGE_LINES, index$1_MOVE_BUDGET_BYTES as MOVE_BUDGET_BYTES, index$1_MOVE_WINDOW_LINES as MOVE_WINDOW_LINES, type index$1_ManifestChange as ManifestChange, index$1_ManifestSet as ManifestSet, type index$1_ManifestWrite as ManifestWrite, type index$1_MintOptions as MintOptions, type index$1_MissingReason as MissingReason, type index$1_OriginKind as OriginKind, type index$1_PageCitation as PageCitation, type index$1_PageCitationReport as PageCitationReport, type index$1_PageCitations as PageCitations, type index$1_PageLines as PageLines, type index$1_PageSidecar as PageSidecar, type index$1_PrettyOptions as PrettyOptions, index$1_RULE_ID_PREFIX as RULE_ID_PREFIX, type index$1_ReadPageOptions as ReadPageOptions, type index$1_ReadSourceResult as ReadSourceResult, type index$1_ReencryptCitationsResult as ReencryptCitationsResult, type index$1_ReencryptEntriesResult as ReencryptEntriesResult, type index$1_ReencryptOptions as ReencryptOptions, type index$1_ReencryptedCitation as ReencryptedCitation, index$1_SRC_PATTERN as SRC_PATTERN, type index$1_ShownFile as ShownFile, type index$1_SourceEnd as SourceEnd, type index$1_SourceIndex as SourceIndex, type index$1_SourceRange as SourceRange, type index$1_SourceStatus as SourceStatus, type index$1_StatementForm as StatementForm, type index$1_UpdateOptions as UpdateOptions, type index$1_UpdatePage as UpdatePage, type index$1_UpdateRewrite as UpdateRewrite, type index$1_UpdateRun as UpdateRun, index$1_anchoredLines as anchoredLines, index$1_appendFrontmatterCitation as appendFrontmatterCitation, index$1_blockMatches as blockMatches, index$1_bodyLineOf as bodyLineOf, index$1_buildSourceIndex as buildSourceIndex, index$1_checkCitations as checkCitations, index$1_claimEnd as claimEnd, index$1_claimLine as claimLine, index$1_claimMessageFor as claimMessageFor, index$1_classifyCitation as classifyCitation, index$1_detectEol as detectEol, index$1_duplicateJoinRefusal as duplicateJoinRefusal, index$1_entryObject as entryObject, index$1_errorSite as errorSite, index$1_fenceSpanAt as fenceSpanAt, index$1_fencedBlockAfter as fencedBlockAfter, index$1_fencedBlockAt as fencedBlockAt, index$1_fencedBlocks as fencedBlocks, index$1_findWindows as findWindows, index$1_findingsFor as findingsFor, index$1_formatSrc as formatSrc, index$1_formatStatement as formatStatement, index$1_gitClient as gitClient, index$1_hashLines as hashLines, index$1_hashRange as hashRange, index$1_historyOf as historyOf, index$1_insertStatementBefore as insertStatementBefore, index$1_insideFence as insideFence, index$1_isCiteRule as isCiteRule, index$1_isKeyedPin as isKeyedPin, index$1_itemLine as itemLine, index$1_lineAt as lineAt, index$1_lineSpec as lineSpec, index$1_loadCitationSidecars as loadCitationSidecars, index$1_loadCiteConfig as loadCiteConfig, index$1_markerUnit as markerUnit, index$1_messageFor as messageFor, index$1_mintCitation as mintCitation, index$1_noGit as noGit, index$1_normalizeText as normalizeText, index$1_normalizeWhitespace as normalizeWhitespace, index$1_offsetOfLine as offsetOfLine, index$1_orphanRefusal as orphanRefusal, index$1_ownedMessage as ownedMessage, index$1_paragraphAfter as paragraphAfter, index$1_parseCiteConfig as parseCiteConfig, index$1_parseLines as parseLines, index$1_parseSrc as parseSrc, index$1_parseStatements as parseStatements, index$1_pickExtractor as pickExtractor, index$1_pinOfLines as pinOfLines, index$1_rangeLines as rangeLines, index$1_readCiteConfigFile as readCiteConfigFile, index$1_readPage as readPage, index$1_readSource as readSource, index$1_reencryptCitationEntries as reencryptCitationEntries, index$1_reencryptCitations as reencryptCitations, index$1_renderCheckGithub as renderCheckGithub, index$1_renderCheckJson as renderCheckJson, index$1_renderCheckPretty as renderCheckPretty, index$1_renderUpdateJson as renderUpdateJson, index$1_renderUpdatePretty as renderUpdatePretty, index$1_resolveCiteRun as resolveCiteRun, index$1_resolveSeverity as resolveSeverity, index$1_rewriteLine as rewriteLine, index$1_ruleId as ruleId, index$1_runAdd as runAdd, index$1_runCheck as runCheck, index$1_runUpdate as runUpdate, index$1_shortCommit as shortCommit, index$1_shortLine as shortLine, index$1_shortPin as shortPin, index$1_shortSrc as shortSrc, index$1_sidecarsFor as sidecarsFor, index$1_sliceLines as sliceLines, index$1_sourceRange as sourceRange, index$1_spellLines as spellLines, index$1_spellSource as spellSource, index$1_splice as splice, index$1_spliceEntryField as spliceEntryField, index$1_splitLines as splitLines, index$1_statementForms as statementForms, index$1_toBodyLines as toBodyLines, index$1_toFileLines as toFileLines, index$1_toValidationResult as toValidationResult, index$1_twoManifestsRefusal as twoManifestsRefusal, index$1_unifiedDiff as unifiedDiff, index$1_unitAt as unitAt, index$1_urlManifestRefusal as urlManifestRefusal, index$1_validateEntry as validateEntry };
4961
4986
  }
4962
4987
 
4963
4988
  /**
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  reencryptMetadata,
6
6
  runKeyRotate,
7
7
  runKeySet
8
- } from "./chunk-TIZE6GXU.js";
8
+ } from "./chunk-LORLZO3J.js";
9
9
  import {
10
10
  BinMissing,
11
11
  COMMON_FORMATS,
@@ -127,7 +127,7 @@ import {
127
127
  valueOf,
128
128
  vendorFileName,
129
129
  writeFileAtomic
130
- } from "./chunk-EYD2RYKV.js";
130
+ } from "./chunk-TNT3ZROC.js";
131
131
 
132
132
  // src/key/index.ts
133
133
  var key_exports = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hawkeyexl/manni",
3
- "version": "2.3.8",
3
+ "version": "2.3.10",
4
4
  "description": "One command line for documentation that is meant to be checked. `manni meta` validates the presence and format of document metadata (Markdown frontmatter and more) against JSON Schema, built for CI. Formerly docmeta.",
5
5
  "type": "module",
6
6
  "bin": {