@agimon-ai/doompi-hashline 0.0.1-alpha.49 → 0.0.1-alpha.50

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agimon-ai/doompi-hashline",
3
- "version": "0.0.1-alpha.49",
3
+ "version": "0.0.1-alpha.50",
4
4
  "description": "Shared snapshot-bound file tags and line anchors for DoomPi tools.",
5
5
  "keywords": [
6
6
  "ai",
package/dist/files.d.cts DELETED
@@ -1,2 +0,0 @@
1
- import { computeFileTag, decodeUtf8, displayPath, isWritableFile, resolveInputPath, resolveReadInputPath } from "./services/files/index.cjs";
2
- export { computeFileTag, decodeUtf8, displayPath, isWritableFile, resolveInputPath, resolveReadInputPath };
package/dist/index.d.cts DELETED
@@ -1,3 +0,0 @@
1
- import { AppliedHashlineEdits, FileHeader, HashlineRangeInput, LineAnchor, ParsedTaggedLine, PreparedHashlineEdit, TaggedLineMarker, TaggedLinePrefix } from "./types/hashline.cjs";
2
- import { applyHashlineEdits, formatFileHeader, formatTaggedLine, formatTaggedLines, hashLine, normalizeFileTag, normalizeToLf, parseFileHeader, parseLineAnchor, parseTaggedLine, splitLines, stripBom } from "./services/hashline/index.cjs";
3
- export { type AppliedHashlineEdits, type FileHeader, type HashlineRangeInput, type LineAnchor, type ParsedTaggedLine, type PreparedHashlineEdit, type TaggedLineMarker, type TaggedLinePrefix, applyHashlineEdits, formatFileHeader, formatTaggedLine, formatTaggedLines, hashLine, normalizeFileTag, normalizeToLf, parseFileHeader, parseLineAnchor, parseTaggedLine, splitLines, stripBom };
@@ -1,11 +0,0 @@
1
- //#region src/services/files/index.d.ts
2
- export declare function computeFileTag(bytes: Uint8Array): string;
3
- export declare function decodeUtf8(bytes: Uint8Array, path: string): string;
4
- /** Return whether the current process can edit an existing file. */
5
- export declare function isWritableFile(path: string): Promise<boolean>;
6
- export declare function resolveInputPath(input: string, cwd: string): string;
7
- /** Resolve the same existing-file variants as Pi's native read tool. */
8
- export declare function resolveReadInputPath(input: string, cwd: string): Promise<string>;
9
- export declare function displayPath(absolutePath: string, cwd: string): string;
10
- //#endregion
11
- //# sourceMappingURL=index.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../../../src/services/files/index.ts"],"mappings":";wBAUgB,eAAe,OAAO;wBAItB,WAAW,OAAO,YAAY;;wBASxB,eAAe,eAAe;wBAOpC,iBAAiB,eAAe;;wBAW1B,qBAAqB,eAAe,cAAc;wBAgBxD,YAAY,sBAAsB"}
@@ -1,20 +0,0 @@
1
- import { AppliedHashlineEdits, FileHeader, HashlineRangeInput, LineAnchor, ParsedTaggedLine, TaggedLinePrefix } from "../../types/hashline.cjs";
2
- //#region src/services/hashline/index.d.ts
3
- /**
4
- * Return Phi's three-letter whitespace-insensitive FNV-1a64 line anchor.
5
- * Adapted from pulseaiclub/phi writetool under the MIT license.
6
- */
7
- export declare function hashLine(line: string): string;
8
- export declare function normalizeToLf(text: string): string;
9
- export declare function stripBom(text: string): string;
10
- export declare function splitLines(text: string): string[];
11
- export declare function normalizeFileTag(value: string): string;
12
- export declare function formatFileHeader(path: string, tag: string): string;
13
- export declare function parseFileHeader(value: string): FileHeader | undefined;
14
- export declare function formatTaggedLine(line: string, lineNumber: number, prefix?: TaggedLinePrefix, anchorSource?: string): string;
15
- export declare function formatTaggedLines(lines: readonly string[], firstLine?: number): string;
16
- export declare function parseTaggedLine(value: string): ParsedTaggedLine | undefined;
17
- export declare function parseLineAnchor(value: string): LineAnchor;
18
- export declare function applyHashlineEdits(originalContent: string, requestedEdits: readonly HashlineRangeInput[]): AppliedHashlineEdits;
19
- //#endregion
20
- //# sourceMappingURL=index.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../../../src/services/hashline/index.ts"],"mappings":";;;;;;wBAyBgB,SAAS;wBAiBT,cAAc;wBAId,SAAS;wBAIT,WAAW;wBAIX,iBAAiB;wBAUjB,iBAAiB,cAAc;wBAO/B,gBAAgB,gBAAgB;wBAOhC,iBACd,cACA,oBACA,SAAQ,kBACR;wBAMc,kBAAkB,0BAA0B;wBAI5C,gBAAgB,gBAAgB;wBAahC,gBAAgB,gBAAgB;wBAoBhC,mBACd,yBACA,yBAAyB,uBACxB"}
@@ -1,33 +0,0 @@
1
- //#region src/types/hashline.d.ts
2
- export interface HashlineRangeInput {
3
- readonly from: string;
4
- readonly to: string;
5
- readonly content?: string | null;
6
- }
7
- export interface LineAnchor {
8
- readonly line: number;
9
- readonly hash: string;
10
- }
11
- export interface PreparedHashlineEdit {
12
- readonly from: LineAnchor;
13
- readonly to: LineAnchor;
14
- readonly content: string | null;
15
- readonly source: HashlineRangeInput;
16
- }
17
- export interface AppliedHashlineEdits {
18
- readonly content: string;
19
- readonly edits: readonly PreparedHashlineEdit[];
20
- }
21
- export interface FileHeader {
22
- readonly path: string;
23
- readonly tag: string;
24
- }
25
- export type TaggedLineMarker = 'match' | 'context';
26
- export interface ParsedTaggedLine {
27
- readonly content: string;
28
- readonly line: number;
29
- readonly marker?: TaggedLineMarker;
30
- }
31
- export type TaggedLinePrefix = '' | '>> ' | ' ';
32
- //#endregion
33
- //# sourceMappingURL=hashline.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hashline.d.cts","names":[],"sources":["../../src/types/hashline.ts"],"mappings":";iBAAiB;WACN;WACA;WACA;;iBAGM;WACN;WACA;;iBAGM;WACN,MAAM;WACN,IAAI;WACJ;WACA,QAAQ;;iBAGF;WACN;WACA,gBAAgB;;iBAGV;WACN;WACA;;YAGC;iBAEK;WACN;WACA;WACA,SAAS;;YAGR"}