@oh-my-pi/hashline 16.3.6 → 16.3.7

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.
@@ -1,4 +1,4 @@
1
- import type { ApplyResult, Edit } from "./types";
1
+ import type { ApplyResult, Edit } from "./types.js";
2
2
  /** A line that is nothing but closing delimiters: `}`, `)`, `];`, `})`, `},`. */
3
3
  export declare const STRUCTURAL_CLOSER_RE: RegExp;
4
4
  /**
@@ -1,4 +1,4 @@
1
- import type { BlockResolution, BlockResolver, Edit } from "./types";
1
+ import type { BlockResolution, BlockResolver, Edit } from "./types.js";
2
2
  export interface ResolveBlockEditsOptions {
3
3
  /**
4
4
  * How to handle a replace/delete block edit that cannot be resolved
@@ -10,5 +10,5 @@
10
10
  * This is intentionally decoupled from the diff producer: anything that
11
11
  * emits the `<sign><lineNum>|<content>` shape works.
12
12
  */
13
- import type { CompactDiffOptions, CompactDiffPreview } from "./types";
13
+ import type { CompactDiffOptions, CompactDiffPreview } from "./types.js";
14
14
  export declare function buildCompactDiffPreview(diff: string, options?: CompactDiffOptions): CompactDiffPreview;
@@ -3,7 +3,7 @@
3
3
  * display helpers. These are the single source of truth for the parser, the
4
4
  * tokenizer, the prompt, and the formal grammar.
5
5
  */
6
- import type { Cursor } from "./types";
6
+ import type { Cursor } from "./types.js";
7
7
  /** File-section header delimiters: `[path#hash]`. */
8
8
  export declare const HL_FILE_PREFIX = "[";
9
9
  export declare const HL_FILE_SUFFIX = "]";
@@ -7,7 +7,7 @@ export interface WriteResult {
7
7
  /** Final text that was persisted. May differ from the input if the FS transformed it. */
8
8
  text: string;
9
9
  }
10
- import type { FileOp } from "./types";
10
+ import type { FileOp } from "./types.js";
11
11
  /** Optional hints for {@link Filesystem.preflightWrite}. */
12
12
  export interface PreflightWriteOptions {
13
13
  fileOp?: FileOp;
@@ -1,17 +1,17 @@
1
- export * from "./apply";
2
- export * from "./block";
3
- export * from "./diff-preview";
4
- export * from "./format";
5
- export * from "./fs";
6
- export * from "./input";
7
- export * from "./messages";
8
- export * from "./mismatch";
9
- export * from "./normalize";
10
- export * from "./parser";
11
- export * from "./patcher";
12
- export * from "./prefixes";
13
- export * from "./recovery";
14
- export * from "./snapshots";
15
- export * from "./stream";
16
- export * from "./tokenizer";
17
- export * from "./types";
1
+ export * from "./apply.js";
2
+ export * from "./block.js";
3
+ export * from "./diff-preview.js";
4
+ export * from "./format.js";
5
+ export * from "./fs.js";
6
+ export * from "./input.js";
7
+ export * from "./messages.js";
8
+ export * from "./mismatch.js";
9
+ export * from "./normalize.js";
10
+ export * from "./parser.js";
11
+ export * from "./patcher.js";
12
+ export * from "./prefixes.js";
13
+ export * from "./recovery.js";
14
+ export * from "./snapshots.js";
15
+ export * from "./stream.js";
16
+ export * from "./tokenizer.js";
17
+ export * from "./types.js";
@@ -1,4 +1,4 @@
1
- import type { ApplyResult, BlockResolver, Edit, FileOp, SplitOptions } from "./types";
1
+ import type { ApplyResult, BlockResolver, Edit, FileOp, SplitOptions } from "./types.js";
2
2
  interface RawSection {
3
3
  path: string;
4
4
  fileHash?: string;
@@ -1,5 +1,5 @@
1
- import { type Token } from "./tokenizer";
2
- import type { Edit, FileOp } from "./types";
1
+ import { type Token } from "./tokenizer.js";
2
+ import type { Edit, FileOp } from "./types.js";
3
3
  export declare class Executor {
4
4
  #private;
5
5
  feed(token: Token): void;
@@ -1,9 +1,9 @@
1
- import type { Filesystem } from "./fs";
2
- import type { Patch, PatchSection } from "./input";
3
- import { type LineEnding } from "./normalize";
4
- import { Recovery } from "./recovery";
5
- import type { SnapshotStore } from "./snapshots";
6
- import type { ApplyResult, BlockResolution, BlockResolver, FileOp } from "./types";
1
+ import type { Filesystem } from "./fs.js";
2
+ import type { Patch, PatchSection } from "./input.js";
3
+ import { type LineEnding } from "./normalize.js";
4
+ import { Recovery } from "./recovery.js";
5
+ import type { SnapshotStore } from "./snapshots.js";
6
+ import type { ApplyResult, BlockResolution, BlockResolver, FileOp } from "./types.js";
7
7
  export interface PatcherOptions {
8
8
  /** Storage backend used for all reads and writes. */
9
9
  fs: Filesystem;
@@ -1,5 +1,5 @@
1
- import type { SnapshotStore } from "./snapshots";
2
- import type { Edit } from "./types";
1
+ import type { SnapshotStore } from "./snapshots.js";
2
+ import type { Edit } from "./types.js";
3
3
  export interface RecoveryArgs {
4
4
  path: string;
5
5
  currentText: string;
@@ -1,2 +1,2 @@
1
- import type { StreamOptions } from "./types";
1
+ import type { StreamOptions } from "./types.js";
2
2
  export declare function streamHashLines(source: ReadableStream<Uint8Array> | AsyncIterable<Uint8Array>, options?: StreamOptions): AsyncGenerator<string>;
@@ -1,4 +1,4 @@
1
- import type { Anchor, Cursor, ParsedRange } from "./types";
1
+ import type { Anchor, Cursor, ParsedRange } from "./types.js";
2
2
  export declare function splitHashlineLines(text: string): string[];
3
3
  export declare function cloneCursor(cursor: Cursor): Cursor;
4
4
  /** Parse a bare line-number anchor. Throws on malformed input. */
@@ -70,4 +70,4 @@ export declare class Tokenizer {
70
70
  isHeader(line: string): boolean;
71
71
  isEnvelopeMarker(line: string): boolean;
72
72
  }
73
- export type { ParsedRange } from "./types";
73
+ export type { ParsedRange } from "./types.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/hashline",
4
- "version": "16.3.6",
4
+ "version": "16.3.7",
5
5
  "description": "Hashline: a compact, line-anchored patch language and applier. Pluggable FS/IO so it works over disk, in-memory, or any custom backend.",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": "Can Boluk",