@stego-labs/shared 1.0.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/README.md +13 -0
- package/dist/contracts/cli/comments.d.ts +98 -0
- package/dist/contracts/cli/comments.d.ts.map +1 -0
- package/dist/contracts/cli/comments.js +2 -0
- package/dist/contracts/cli/comments.js.map +1 -0
- package/dist/contracts/cli/envelopes.d.ts +23 -0
- package/dist/contracts/cli/envelopes.d.ts.map +1 -0
- package/dist/contracts/cli/envelopes.js +20 -0
- package/dist/contracts/cli/envelopes.js.map +1 -0
- package/dist/contracts/cli/errors.d.ts +8 -0
- package/dist/contracts/cli/errors.d.ts.map +1 -0
- package/dist/contracts/cli/errors.js +15 -0
- package/dist/contracts/cli/errors.js.map +1 -0
- package/dist/contracts/cli/exit-codes.d.ts +3 -0
- package/dist/contracts/cli/exit-codes.d.ts.map +1 -0
- package/dist/contracts/cli/exit-codes.js +16 -0
- package/dist/contracts/cli/exit-codes.js.map +1 -0
- package/dist/contracts/cli/index.d.ts +7 -0
- package/dist/contracts/cli/index.d.ts.map +1 -0
- package/dist/contracts/cli/index.js +7 -0
- package/dist/contracts/cli/index.js.map +1 -0
- package/dist/contracts/cli/metadata.d.ts +32 -0
- package/dist/contracts/cli/metadata.d.ts.map +1 -0
- package/dist/contracts/cli/metadata.js +2 -0
- package/dist/contracts/cli/metadata.js.map +1 -0
- package/dist/contracts/cli/operations.d.ts +2 -0
- package/dist/contracts/cli/operations.d.ts.map +1 -0
- package/dist/contracts/cli/operations.js +2 -0
- package/dist/contracts/cli/operations.js.map +1 -0
- package/dist/domain/comments/anchors.d.ts +2 -0
- package/dist/domain/comments/anchors.d.ts.map +1 -0
- package/dist/domain/comments/anchors.js +2 -0
- package/dist/domain/comments/anchors.js.map +1 -0
- package/dist/domain/comments/index.d.ts +5 -0
- package/dist/domain/comments/index.d.ts.map +1 -0
- package/dist/domain/comments/index.js +5 -0
- package/dist/domain/comments/index.js.map +1 -0
- package/dist/domain/comments/parser.d.ts +136 -0
- package/dist/domain/comments/parser.d.ts.map +1 -0
- package/dist/domain/comments/parser.js +920 -0
- package/dist/domain/comments/parser.js.map +1 -0
- package/dist/domain/comments/serializer.d.ts +2 -0
- package/dist/domain/comments/serializer.d.ts.map +1 -0
- package/dist/domain/comments/serializer.js +2 -0
- package/dist/domain/comments/serializer.js.map +1 -0
- package/dist/domain/comments/thread-key.d.ts +3 -0
- package/dist/domain/comments/thread-key.d.ts.map +1 -0
- package/dist/domain/comments/thread-key.js +22 -0
- package/dist/domain/comments/thread-key.js.map +1 -0
- package/dist/domain/frontmatter/index.d.ts +4 -0
- package/dist/domain/frontmatter/index.d.ts.map +1 -0
- package/dist/domain/frontmatter/index.js +4 -0
- package/dist/domain/frontmatter/index.js.map +1 -0
- package/dist/domain/frontmatter/parser.d.ts +13 -0
- package/dist/domain/frontmatter/parser.d.ts.map +1 -0
- package/dist/domain/frontmatter/parser.js +35 -0
- package/dist/domain/frontmatter/parser.js.map +1 -0
- package/dist/domain/frontmatter/serializer.d.ts +4 -0
- package/dist/domain/frontmatter/serializer.d.ts.map +1 -0
- package/dist/domain/frontmatter/serializer.js +33 -0
- package/dist/domain/frontmatter/serializer.js.map +1 -0
- package/dist/domain/frontmatter/validators.d.ts +6 -0
- package/dist/domain/frontmatter/validators.d.ts.map +1 -0
- package/dist/domain/frontmatter/validators.js +66 -0
- package/dist/domain/frontmatter/validators.js.map +1 -0
- package/dist/domain/images/index.d.ts +3 -0
- package/dist/domain/images/index.d.ts.map +1 -0
- package/dist/domain/images/index.js +3 -0
- package/dist/domain/images/index.js.map +1 -0
- package/dist/domain/images/rewrite.d.ts +17 -0
- package/dist/domain/images/rewrite.d.ts.map +1 -0
- package/dist/domain/images/rewrite.js +387 -0
- package/dist/domain/images/rewrite.js.map +1 -0
- package/dist/domain/images/style.d.ts +27 -0
- package/dist/domain/images/style.d.ts.map +1 -0
- package/dist/domain/images/style.js +186 -0
- package/dist/domain/images/style.js.map +1 -0
- package/dist/domain/project/index.d.ts +3 -0
- package/dist/domain/project/index.d.ts.map +1 -0
- package/dist/domain/project/index.js +5 -0
- package/dist/domain/project/index.js.map +1 -0
- package/dist/domain/stages/index.d.ts +5 -0
- package/dist/domain/stages/index.d.ts.map +1 -0
- package/dist/domain/stages/index.js +21 -0
- package/dist/domain/stages/index.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/utils/guards.d.ts +3 -0
- package/dist/utils/guards.d.ts.map +1 -0
- package/dist/utils/guards.js +7 -0
- package/dist/utils/guards.js.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/invariant.d.ts +2 -0
- package/dist/utils/invariant.d.ts.map +1 -0
- package/dist/utils/invariant.js +6 -0
- package/dist/utils/invariant.js.map +1 -0
- package/dist/utils/result.d.ts +10 -0
- package/dist/utils/result.d.ts.map +1 -0
- package/dist/utils/result.js +7 -0
- package/dist/utils/result.js.map +1 -0
- package/package.json +84 -0
package/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# @stego-labs/shared
|
|
2
|
+
|
|
3
|
+
`@stego-labs/shared` contains shared contracts and domain primitives used across Stego packages.
|
|
4
|
+
|
|
5
|
+
Public subpaths:
|
|
6
|
+
|
|
7
|
+
- `@stego-labs/shared/contracts/cli`
|
|
8
|
+
- `@stego-labs/shared/domain/comments`
|
|
9
|
+
- `@stego-labs/shared/domain/frontmatter`
|
|
10
|
+
- `@stego-labs/shared/domain/images`
|
|
11
|
+
- `@stego-labs/shared/domain/project`
|
|
12
|
+
- `@stego-labs/shared/domain/stages`
|
|
13
|
+
- `@stego-labs/shared/utils`
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { CommentStatus, SerializedCommentDocumentState } from "../../domain/comments/index.ts";
|
|
2
|
+
import type { CliOperation } from "./operations.ts";
|
|
3
|
+
type CommentsOperation = Extract<CliOperation, `comments.${string}`>;
|
|
4
|
+
export type CommentsSubcommand = CommentsOperation extends `comments.${infer Subcommand}` ? Subcommand : never;
|
|
5
|
+
export type CommentRangePayload = {
|
|
6
|
+
start: {
|
|
7
|
+
line: number;
|
|
8
|
+
col: number;
|
|
9
|
+
};
|
|
10
|
+
end: {
|
|
11
|
+
line: number;
|
|
12
|
+
col: number;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export type CommentAddPayload = {
|
|
16
|
+
message: string;
|
|
17
|
+
author?: string;
|
|
18
|
+
anchor?: {
|
|
19
|
+
range?: CommentRangePayload;
|
|
20
|
+
cursor_line?: number;
|
|
21
|
+
excerpt?: string;
|
|
22
|
+
};
|
|
23
|
+
meta?: Record<string, unknown>;
|
|
24
|
+
};
|
|
25
|
+
export type CommentReplyPayload = {
|
|
26
|
+
message: string;
|
|
27
|
+
author?: string;
|
|
28
|
+
};
|
|
29
|
+
export type CommentSyncAnchorsPayload = {
|
|
30
|
+
updates?: Array<{
|
|
31
|
+
id: string;
|
|
32
|
+
start: {
|
|
33
|
+
line: number;
|
|
34
|
+
col: number;
|
|
35
|
+
};
|
|
36
|
+
end: {
|
|
37
|
+
line: number;
|
|
38
|
+
col: number;
|
|
39
|
+
};
|
|
40
|
+
}>;
|
|
41
|
+
delete_ids?: string[];
|
|
42
|
+
};
|
|
43
|
+
export type CommentsReadEnvelope = {
|
|
44
|
+
ok: true;
|
|
45
|
+
operation: "read";
|
|
46
|
+
manuscript: string;
|
|
47
|
+
state: SerializedCommentDocumentState;
|
|
48
|
+
};
|
|
49
|
+
export type CommentsAddEnvelope = {
|
|
50
|
+
ok: true;
|
|
51
|
+
operation: "add";
|
|
52
|
+
manuscript: string;
|
|
53
|
+
commentId: string;
|
|
54
|
+
state: SerializedCommentDocumentState;
|
|
55
|
+
};
|
|
56
|
+
export type CommentsReplyEnvelope = {
|
|
57
|
+
ok: true;
|
|
58
|
+
operation: "reply";
|
|
59
|
+
manuscript: string;
|
|
60
|
+
commentId: string;
|
|
61
|
+
state: SerializedCommentDocumentState;
|
|
62
|
+
};
|
|
63
|
+
export type CommentsSetStatusEnvelope = {
|
|
64
|
+
ok: true;
|
|
65
|
+
operation: "set-status";
|
|
66
|
+
manuscript: string;
|
|
67
|
+
status: CommentStatus;
|
|
68
|
+
changedIds: string[];
|
|
69
|
+
state: SerializedCommentDocumentState;
|
|
70
|
+
};
|
|
71
|
+
export type CommentsDeleteEnvelope = {
|
|
72
|
+
ok: true;
|
|
73
|
+
operation: "delete";
|
|
74
|
+
manuscript: string;
|
|
75
|
+
removed: number;
|
|
76
|
+
state: SerializedCommentDocumentState;
|
|
77
|
+
};
|
|
78
|
+
export type CommentsClearResolvedEnvelope = {
|
|
79
|
+
ok: true;
|
|
80
|
+
operation: "clear-resolved";
|
|
81
|
+
manuscript: string;
|
|
82
|
+
removed: number;
|
|
83
|
+
state: SerializedCommentDocumentState;
|
|
84
|
+
};
|
|
85
|
+
export type CommentsSyncAnchorsEnvelope = {
|
|
86
|
+
ok: true;
|
|
87
|
+
operation: "sync-anchors";
|
|
88
|
+
manuscript: string;
|
|
89
|
+
updatedCount: number;
|
|
90
|
+
deletedCount: number;
|
|
91
|
+
state: SerializedCommentDocumentState;
|
|
92
|
+
};
|
|
93
|
+
export type CommentsSuccessEnvelope = CommentsReadEnvelope | CommentsAddEnvelope | CommentsReplyEnvelope | CommentsSetStatusEnvelope | CommentsDeleteEnvelope | CommentsClearResolvedEnvelope | CommentsSyncAnchorsEnvelope;
|
|
94
|
+
export type CommentsSuccessEnvelopeFor<TSubcommand extends CommentsSubcommand> = Extract<CommentsSuccessEnvelope, {
|
|
95
|
+
operation: TSubcommand;
|
|
96
|
+
}>;
|
|
97
|
+
export {};
|
|
98
|
+
//# sourceMappingURL=comments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comments.d.ts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U,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,8BAA8B,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,EAAE,IAAI,CAAC;IACT,SAAS,EAAE,cAAc,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,8BAA8B,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAC/B,oBAAoB,GACpB,mBAAmB,GACnB,qBAAqB,GACrB,yBAAyB,GACzB,sBAAsB,GACtB,6BAA6B,GAC7B,2BAA2B,CAAC;AAEhC,MAAM,MAAM,0BAA0B,CAAC,WAAW,SAAS,kBAAkB,IAC3E,OAAO,CAAC,uBAAuB,EAAE;IAAE,SAAS,EAAE,WAAW,CAAA;CAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comments.js","sourceRoot":"","sources":["../../../src/contracts/cli/comments.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { CliOperation } from "./operations.ts";
|
|
2
|
+
import type { CliErrorCode } from "./errors.ts";
|
|
3
|
+
export declare const CLI_CONTRACT_VERSION = 1;
|
|
4
|
+
export type CliSuccessEnvelope<TPayload> = {
|
|
5
|
+
ok: true;
|
|
6
|
+
version: number;
|
|
7
|
+
operation: CliOperation;
|
|
8
|
+
data: TPayload;
|
|
9
|
+
};
|
|
10
|
+
export type CliErrorEnvelope = {
|
|
11
|
+
ok: false;
|
|
12
|
+
version: number;
|
|
13
|
+
operation?: CliOperation;
|
|
14
|
+
code: CliErrorCode;
|
|
15
|
+
message: string;
|
|
16
|
+
details?: Record<string, unknown>;
|
|
17
|
+
};
|
|
18
|
+
export declare function successEnvelope<TPayload>(operation: CliOperation, data: TPayload): CliSuccessEnvelope<TPayload>;
|
|
19
|
+
export declare function errorEnvelope(code: CliErrorCode, message: string, options?: {
|
|
20
|
+
operation?: CliOperation;
|
|
21
|
+
details?: Record<string, unknown>;
|
|
22
|
+
}): CliErrorEnvelope;
|
|
23
|
+
//# sourceMappingURL=envelopes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"envelopes.d.ts","sourceRoot":"","sources":["../../../src/contracts/cli/envelopes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAEtC,MAAM,MAAM,kBAAkB,CAAC,QAAQ,IAAI;IACzC,EAAE,EAAE,IAAI,CAAC;IACT,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,YAAY,CAAC;IACxB,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,KAAK,CAAC;IACV,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC,CAAC;AAEF,wBAAgB,eAAe,CAAC,QAAQ,EACtC,SAAS,EAAE,YAAY,EACvB,IAAI,EAAE,QAAQ,GACb,kBAAkB,CAAC,QAAQ,CAAC,CAO9B;AAED,wBAAgB,aAAa,CAC3B,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,YAAY,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,GACxE,gBAAgB,CASlB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export const CLI_CONTRACT_VERSION = 1;
|
|
2
|
+
export function successEnvelope(operation, data) {
|
|
3
|
+
return {
|
|
4
|
+
ok: true,
|
|
5
|
+
version: CLI_CONTRACT_VERSION,
|
|
6
|
+
operation,
|
|
7
|
+
data
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export function errorEnvelope(code, message, options) {
|
|
11
|
+
return {
|
|
12
|
+
ok: false,
|
|
13
|
+
version: CLI_CONTRACT_VERSION,
|
|
14
|
+
operation: options?.operation,
|
|
15
|
+
code,
|
|
16
|
+
message,
|
|
17
|
+
details: options?.details
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=envelopes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"envelopes.js","sourceRoot":"","sources":["../../../src/contracts/cli/envelopes.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC;AAkBtC,MAAM,UAAU,eAAe,CAC7B,SAAuB,EACvB,IAAc;IAEd,OAAO;QACL,EAAE,EAAE,IAAI;QACR,OAAO,EAAE,oBAAoB;QAC7B,SAAS;QACT,IAAI;KACL,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,aAAa,CAC3B,IAAkB,EAClB,OAAe,EACf,OAAyE;IAEzE,OAAO;QACL,EAAE,EAAE,KAAK;QACT,OAAO,EAAE,oBAAoB;QAC7B,SAAS,EAAE,OAAO,EAAE,SAAS;QAC7B,IAAI;QACJ,OAAO;QACP,OAAO,EAAE,OAAO,EAAE,OAAO;KAC1B,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type CliErrorCode = "INVALID_USAGE" | "WORKSPACE_NOT_FOUND" | "PROJECT_NOT_FOUND" | "INVALID_CONFIGURATION" | "INVALID_PAYLOAD" | "VALIDATION_FAILED" | "COMMENT_APPENDIX_INVALID" | "WRITE_FAILURE" | "TOOLING_MISSING" | "INTERNAL_ERROR";
|
|
2
|
+
export declare class CliError extends Error {
|
|
3
|
+
readonly code: CliErrorCode;
|
|
4
|
+
readonly details?: Record<string, unknown>;
|
|
5
|
+
constructor(code: CliErrorCode, message: string, details?: Record<string, unknown>);
|
|
6
|
+
get exitCode(): number;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/contracts/cli/errors.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,GACpB,eAAe,GACf,qBAAqB,GACrB,mBAAmB,GACnB,uBAAuB,GACvB,iBAAiB,GACjB,mBAAmB,GACnB,0BAA0B,GAC1B,eAAe,GACf,iBAAiB,GACjB,gBAAgB,CAAC;AAErB,qBAAa,QAAS,SAAQ,KAAK;IACjC,SAAgB,IAAI,EAAE,YAAY,CAAC;IAEnC,SAAgB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBAE/B,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAOzF,IAAW,QAAQ,IAAI,MAAM,CAE5B;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { getExitCodeForError } from "./exit-codes.js";
|
|
2
|
+
export class CliError extends Error {
|
|
3
|
+
code;
|
|
4
|
+
details;
|
|
5
|
+
constructor(code, message, details) {
|
|
6
|
+
super(message);
|
|
7
|
+
this.name = "CliError";
|
|
8
|
+
this.code = code;
|
|
9
|
+
this.details = details;
|
|
10
|
+
}
|
|
11
|
+
get exitCode() {
|
|
12
|
+
return getExitCodeForError(this.code);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/contracts/cli/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AActD,MAAM,OAAO,QAAS,SAAQ,KAAK;IACjB,IAAI,CAAe;IAEnB,OAAO,CAA2B;IAElD,YAAmB,IAAkB,EAAE,OAAe,EAAE,OAAiC;QACvF,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,IAAW,QAAQ;QACjB,OAAO,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exit-codes.d.ts","sourceRoot":"","sources":["../../../src/contracts/cli/exit-codes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAehD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,YAAY,GAAG,MAAM,CAE9D"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const EXIT_CODES = {
|
|
2
|
+
INVALID_USAGE: 2,
|
|
3
|
+
WORKSPACE_NOT_FOUND: 3,
|
|
4
|
+
PROJECT_NOT_FOUND: 3,
|
|
5
|
+
INVALID_CONFIGURATION: 4,
|
|
6
|
+
INVALID_PAYLOAD: 4,
|
|
7
|
+
VALIDATION_FAILED: 5,
|
|
8
|
+
COMMENT_APPENDIX_INVALID: 5,
|
|
9
|
+
WRITE_FAILURE: 6,
|
|
10
|
+
TOOLING_MISSING: 7,
|
|
11
|
+
INTERNAL_ERROR: 1
|
|
12
|
+
};
|
|
13
|
+
export function getExitCodeForError(code) {
|
|
14
|
+
return EXIT_CODES[code] ?? 1;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=exit-codes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exit-codes.js","sourceRoot":"","sources":["../../../src/contracts/cli/exit-codes.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAAiC;IAC/C,aAAa,EAAE,CAAC;IAChB,mBAAmB,EAAE,CAAC;IACtB,iBAAiB,EAAE,CAAC;IACpB,qBAAqB,EAAE,CAAC;IACxB,eAAe,EAAE,CAAC;IAClB,iBAAiB,EAAE,CAAC;IACpB,wBAAwB,EAAE,CAAC;IAC3B,aAAa,EAAE,CAAC;IAChB,eAAe,EAAE,CAAC;IAClB,cAAc,EAAE,CAAC;CAClB,CAAC;AAEF,MAAM,UAAU,mBAAmB,CAAC,IAAkB;IACpD,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contracts/cli/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/contracts/cli/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { CliOperation } from "./operations.ts";
|
|
2
|
+
type MetadataOperation = Extract<CliOperation, `metadata.${string}`>;
|
|
3
|
+
export type MetadataSubcommand = MetadataOperation extends `metadata.${infer Subcommand}` ? Subcommand : never;
|
|
4
|
+
export type MetadataState = {
|
|
5
|
+
path: string;
|
|
6
|
+
hasFrontmatter: boolean;
|
|
7
|
+
lineEnding: string;
|
|
8
|
+
frontmatter: Record<string, unknown>;
|
|
9
|
+
body: string;
|
|
10
|
+
};
|
|
11
|
+
export type MetadataReadEnvelope = {
|
|
12
|
+
ok: true;
|
|
13
|
+
operation: "read";
|
|
14
|
+
state: MetadataState;
|
|
15
|
+
};
|
|
16
|
+
export type MetadataApplyEnvelope = {
|
|
17
|
+
ok: true;
|
|
18
|
+
operation: "apply";
|
|
19
|
+
changed: boolean;
|
|
20
|
+
state: MetadataState;
|
|
21
|
+
};
|
|
22
|
+
export type MetadataSuccessEnvelope = MetadataReadEnvelope | MetadataApplyEnvelope;
|
|
23
|
+
export type MetadataSuccessEnvelopeFor<TSubcommand extends MetadataSubcommand> = Extract<MetadataSuccessEnvelope, {
|
|
24
|
+
operation: TSubcommand;
|
|
25
|
+
}>;
|
|
26
|
+
export type MetadataApplyPayload = {
|
|
27
|
+
frontmatter: Record<string, unknown>;
|
|
28
|
+
body?: string;
|
|
29
|
+
hasFrontmatter?: boolean;
|
|
30
|
+
};
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=metadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../src/contracts/cli/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,KAAK,iBAAiB,GAAG,OAAO,CAAC,YAAY,EAAE,YAAY,MAAM,EAAE,CAAC,CAAC;AAErE,MAAM,MAAM,kBAAkB,GAC5B,iBAAiB,SAAS,YAAY,MAAM,UAAU,EAAE,GACpD,UAAU,GACV,KAAK,CAAC;AAEZ,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,IAAI,CAAC;IACT,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,EAAE,IAAI,CAAC;IACT,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,oBAAoB,GAAG,qBAAqB,CAAC;AAEnF,MAAM,MAAM,0BAA0B,CAAC,WAAW,SAAS,kBAAkB,IAC3E,OAAO,CAAC,uBAAuB,EAAE;IAAE,SAAS,EAAE,WAAW,CAAA;CAAE,CAAC,CAAC;AAE/D,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../src/contracts/cli/metadata.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type CliOperation = "init" | "list-projects" | "new-project" | "new" | "validate" | "build" | "check-stage" | "lint" | "export" | "spine.read" | "spine.new-category" | "spine.new" | "metadata.read" | "metadata.apply" | "comments.read" | "comments.add" | "comments.reply" | "comments.set-status" | "comments.delete" | "comments.clear-resolved" | "comments.sync-anchors";
|
|
2
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/contracts/cli/operations.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,eAAe,GACf,aAAa,GACb,KAAK,GACL,UAAU,GACV,OAAO,GACP,aAAa,GACb,MAAM,GACN,QAAQ,GACR,YAAY,GACZ,oBAAoB,GACpB,WAAW,GACX,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,cAAc,GACd,gBAAgB,GAChB,qBAAqB,GACrB,iBAAiB,GACjB,yBAAyB,GACzB,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/contracts/cli/operations.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anchors.d.ts","sourceRoot":"","sources":["../../../src/domain/comments/anchors.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EAChB,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anchors.js","sourceRoot":"","sources":["../../../src/domain/comments/anchors.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EAChB,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domain/comments/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/comments/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
export declare const START_SENTINEL = "<!-- stego-comments:start -->";
|
|
2
|
+
export declare const END_SENTINEL = "<!-- stego-comments:end -->";
|
|
3
|
+
export type CommentStatus = "open" | "resolved";
|
|
4
|
+
export type CommentRange = {
|
|
5
|
+
startLine: number;
|
|
6
|
+
startCol: number;
|
|
7
|
+
endLine: number;
|
|
8
|
+
endCol: number;
|
|
9
|
+
};
|
|
10
|
+
export type CommentThread = {
|
|
11
|
+
id: string;
|
|
12
|
+
status: CommentStatus;
|
|
13
|
+
createdAt?: string;
|
|
14
|
+
timezone?: string;
|
|
15
|
+
timezoneOffsetMinutes?: number;
|
|
16
|
+
paragraphIndex?: number;
|
|
17
|
+
excerpt?: string;
|
|
18
|
+
excerptStartLine?: number;
|
|
19
|
+
excerptStartCol?: number;
|
|
20
|
+
excerptEndLine?: number;
|
|
21
|
+
excerptEndCol?: number;
|
|
22
|
+
thread: string[];
|
|
23
|
+
};
|
|
24
|
+
export type ParagraphInfo = {
|
|
25
|
+
index: number;
|
|
26
|
+
startLine: number;
|
|
27
|
+
endLine: number;
|
|
28
|
+
text: string;
|
|
29
|
+
};
|
|
30
|
+
export type CommentAnchor = {
|
|
31
|
+
anchorType: "paragraph" | "file";
|
|
32
|
+
line: number;
|
|
33
|
+
degraded: boolean;
|
|
34
|
+
underlineStartLine?: number;
|
|
35
|
+
underlineStartCol?: number;
|
|
36
|
+
underlineEndLine?: number;
|
|
37
|
+
underlineEndCol?: number;
|
|
38
|
+
paragraphEndLine?: number;
|
|
39
|
+
};
|
|
40
|
+
export type ParsedCommentAppendix = {
|
|
41
|
+
contentWithoutComments: string;
|
|
42
|
+
comments: CommentThread[];
|
|
43
|
+
errors: string[];
|
|
44
|
+
};
|
|
45
|
+
export type LoadedCommentDocumentState = {
|
|
46
|
+
lineEnding: string;
|
|
47
|
+
contentWithoutComments: string;
|
|
48
|
+
comments: CommentThread[];
|
|
49
|
+
errors: string[];
|
|
50
|
+
paragraphs: ParagraphInfo[];
|
|
51
|
+
anchorsById: Map<string, CommentAnchor>;
|
|
52
|
+
};
|
|
53
|
+
export type SerializedCommentDocumentState = {
|
|
54
|
+
contentWithoutComments: string;
|
|
55
|
+
comments: CommentThread[];
|
|
56
|
+
parseErrors: string[];
|
|
57
|
+
anchorsById: Record<string, CommentAnchor>;
|
|
58
|
+
totalCount: number;
|
|
59
|
+
unresolvedCount: number;
|
|
60
|
+
};
|
|
61
|
+
export type AddCommentAnchorInput = {
|
|
62
|
+
range?: CommentRange;
|
|
63
|
+
cursorLine?: number;
|
|
64
|
+
excerpt?: string;
|
|
65
|
+
};
|
|
66
|
+
export type AddCommentInput = {
|
|
67
|
+
message: string;
|
|
68
|
+
author?: string;
|
|
69
|
+
anchor?: AddCommentAnchorInput;
|
|
70
|
+
meta?: Record<string, unknown>;
|
|
71
|
+
};
|
|
72
|
+
export type ReplyCommentInput = {
|
|
73
|
+
commentId: string;
|
|
74
|
+
message: string;
|
|
75
|
+
author?: string;
|
|
76
|
+
};
|
|
77
|
+
export type SetStatusInput = {
|
|
78
|
+
commentId: string;
|
|
79
|
+
status: CommentStatus;
|
|
80
|
+
thread?: boolean;
|
|
81
|
+
};
|
|
82
|
+
export type SyncAnchorUpdate = {
|
|
83
|
+
id: string;
|
|
84
|
+
start: {
|
|
85
|
+
line: number;
|
|
86
|
+
col: number;
|
|
87
|
+
};
|
|
88
|
+
end: {
|
|
89
|
+
line: number;
|
|
90
|
+
col: number;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
export type SyncAnchorsInput = {
|
|
94
|
+
updates?: SyncAnchorUpdate[];
|
|
95
|
+
deleteIds?: string[];
|
|
96
|
+
};
|
|
97
|
+
export type AddCommentResult = {
|
|
98
|
+
commentId: string;
|
|
99
|
+
comments: CommentThread[];
|
|
100
|
+
};
|
|
101
|
+
export type ReplyCommentResult = {
|
|
102
|
+
commentId: string;
|
|
103
|
+
comments: CommentThread[];
|
|
104
|
+
};
|
|
105
|
+
export type SetStatusResult = {
|
|
106
|
+
changedIds: string[];
|
|
107
|
+
comments: CommentThread[];
|
|
108
|
+
};
|
|
109
|
+
export type DeleteCommentResult = {
|
|
110
|
+
removed: number;
|
|
111
|
+
comments: CommentThread[];
|
|
112
|
+
};
|
|
113
|
+
export type ClearResolvedResult = {
|
|
114
|
+
removed: number;
|
|
115
|
+
comments: CommentThread[];
|
|
116
|
+
};
|
|
117
|
+
export type SyncAnchorsResult = {
|
|
118
|
+
updatedCount: number;
|
|
119
|
+
deletedCount: number;
|
|
120
|
+
comments: CommentThread[];
|
|
121
|
+
};
|
|
122
|
+
export declare function parseCommentAppendix(markdown: string): ParsedCommentAppendix;
|
|
123
|
+
export declare function serializeCommentAppendix(comments: CommentThread[], lineEnding?: string): string;
|
|
124
|
+
export declare function upsertCommentAppendix(contentWithoutComments: string, comments: CommentThread[], lineEnding?: string): string;
|
|
125
|
+
export declare function loadCommentDocumentState(markdownText: string): LoadedCommentDocumentState;
|
|
126
|
+
export declare function serializeLoadedState(state: LoadedCommentDocumentState): SerializedCommentDocumentState;
|
|
127
|
+
export declare function ensureNoParseErrors(state: LoadedCommentDocumentState): void;
|
|
128
|
+
export declare function addCommentToState(markdownText: string, state: LoadedCommentDocumentState, input: AddCommentInput): AddCommentResult;
|
|
129
|
+
export declare function replyToCommentInState(state: LoadedCommentDocumentState, input: ReplyCommentInput): ReplyCommentResult;
|
|
130
|
+
export declare function setCommentStatusInState(state: LoadedCommentDocumentState, input: SetStatusInput): SetStatusResult;
|
|
131
|
+
export declare function deleteCommentInState(state: LoadedCommentDocumentState, commentId: string): DeleteCommentResult;
|
|
132
|
+
export declare function clearResolvedInState(state: LoadedCommentDocumentState): ClearResolvedResult;
|
|
133
|
+
export declare function syncAnchorsInState(markdownText: string, state: LoadedCommentDocumentState, input: SyncAnchorsInput): SyncAnchorsResult;
|
|
134
|
+
export declare function renderStateDocument(state: LoadedCommentDocumentState, comments: CommentThread[]): string;
|
|
135
|
+
export declare function normalizeAuthor(value: string): string;
|
|
136
|
+
//# sourceMappingURL=parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../src/domain/comments/parser.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,kCAAkC,CAAC;AAC9D,eAAO,MAAM,YAAY,gCAAgC,CAAC;AAE1D,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,UAAU,CAAC;AAEhD,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,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