@hasna/todos 0.11.69 → 0.11.70
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/cli/commands/plan-template-commands.d.ts.map +1 -1
- package/dist/cli/index.js +603 -234
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +527 -230
- package/dist/lib/plan-artifacts.d.ts +69 -0
- package/dist/lib/plan-artifacts.d.ts.map +1 -0
- package/dist/release-provenance.json +2 -2
- package/dist/server/index.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { Database } from "bun:sqlite";
|
|
2
|
+
import type { Plan, Project, Task } from "../types/index.js";
|
|
3
|
+
export declare const PLAN_MARKDOWN_SCHEMA = "hasna.todos.plan/v1";
|
|
4
|
+
export interface PlanArtifactPaths {
|
|
5
|
+
project_id: string;
|
|
6
|
+
project_root: string;
|
|
7
|
+
directory: string;
|
|
8
|
+
file_path: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ResolvePlanArtifactPathInput {
|
|
11
|
+
project_id?: string | null;
|
|
12
|
+
project_ref?: string | null;
|
|
13
|
+
plan_id?: string | null;
|
|
14
|
+
db?: Database;
|
|
15
|
+
}
|
|
16
|
+
export interface PlanArtifactTaskReference {
|
|
17
|
+
task_id: string;
|
|
18
|
+
title: string;
|
|
19
|
+
status: Task["status"];
|
|
20
|
+
priority: Task["priority"];
|
|
21
|
+
}
|
|
22
|
+
export interface PlanArtifactMetadata {
|
|
23
|
+
schema: typeof PLAN_MARKDOWN_SCHEMA;
|
|
24
|
+
plan_id: string;
|
|
25
|
+
project_id: string;
|
|
26
|
+
task_list_id: string | null;
|
|
27
|
+
agent_id: string | null;
|
|
28
|
+
stable_id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
status: Plan["status"];
|
|
31
|
+
created_at: string;
|
|
32
|
+
updated_at: string;
|
|
33
|
+
artifact_updated_at: string;
|
|
34
|
+
}
|
|
35
|
+
export interface PlanArtifactSnapshot {
|
|
36
|
+
metadata: PlanArtifactMetadata;
|
|
37
|
+
task_references: PlanArtifactTaskReference[];
|
|
38
|
+
body: string;
|
|
39
|
+
}
|
|
40
|
+
export interface PlanArtifactReadResult extends PlanArtifactSnapshot {
|
|
41
|
+
path: string;
|
|
42
|
+
markdown: string;
|
|
43
|
+
}
|
|
44
|
+
export interface PlanArtifactConflict {
|
|
45
|
+
field: string;
|
|
46
|
+
database: string | null;
|
|
47
|
+
artifact: string | null;
|
|
48
|
+
}
|
|
49
|
+
export interface PlanArtifactInspection {
|
|
50
|
+
path: string;
|
|
51
|
+
exists: boolean;
|
|
52
|
+
parse_error: string | null;
|
|
53
|
+
metadata: PlanArtifactMetadata | null;
|
|
54
|
+
task_references: PlanArtifactTaskReference[];
|
|
55
|
+
conflicts: PlanArtifactConflict[];
|
|
56
|
+
}
|
|
57
|
+
export interface WritePlanArtifactResult {
|
|
58
|
+
path: string;
|
|
59
|
+
snapshot: PlanArtifactSnapshot;
|
|
60
|
+
}
|
|
61
|
+
export declare function resolvePlanArtifactProject(input: ResolvePlanArtifactPathInput): Project;
|
|
62
|
+
export declare function resolvePlanArtifactPaths(input: ResolvePlanArtifactPathInput): PlanArtifactPaths;
|
|
63
|
+
export declare function buildPlanArtifactSnapshot(plan: Plan, tasks?: Task[], artifactUpdatedAt?: string): PlanArtifactSnapshot;
|
|
64
|
+
export declare function renderPlanArtifactMarkdown(snapshot: PlanArtifactSnapshot): string;
|
|
65
|
+
export declare function parsePlanArtifactMarkdown(markdown: string): PlanArtifactSnapshot;
|
|
66
|
+
export declare function writePlanArtifact(plan: Plan, db?: Database): WritePlanArtifactResult | null;
|
|
67
|
+
export declare function readPlanArtifact(plan: Plan, db?: Database): PlanArtifactReadResult | null;
|
|
68
|
+
export declare function inspectPlanArtifact(plan: Plan, db?: Database): PlanArtifactInspection | null;
|
|
69
|
+
//# sourceMappingURL=plan-artifacts.d.ts.map
|
|
@@ -0,0 +1 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AAE,QAAQ,GAAG,uBAAuB,GAAG,IAAI,CAS3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,EAAE,QAAQ,GAAG,sBAAsB,GAAG,IAAI,CAWzF;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,EAAE,QAAQ,GAAG,sBAAsB,GAAG,IAAI,CAmC5F"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"packageName": "@hasna/todos",
|
|
3
|
-
"packageVersion": "0.11.
|
|
3
|
+
"packageVersion": "0.11.70",
|
|
4
4
|
"repository": "https://github.com/hasna/todos.git",
|
|
5
5
|
"gitCommit": "8de441cfe66d5e61839983b91ed42868d214b8b1",
|
|
6
|
-
"generatedAt": "2026-06-
|
|
6
|
+
"generatedAt": "2026-06-30T11:02:03.672Z"
|
|
7
7
|
}
|
package/dist/server/index.js
CHANGED
|
@@ -15565,7 +15565,7 @@ class JSONSchemaGenerator {
|
|
|
15565
15565
|
if (val === undefined) {
|
|
15566
15566
|
if (this.unrepresentable === "throw") {
|
|
15567
15567
|
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
15568
|
-
}
|
|
15568
|
+
}
|
|
15569
15569
|
} else if (typeof val === "bigint") {
|
|
15570
15570
|
if (this.unrepresentable === "throw") {
|
|
15571
15571
|
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
@@ -58652,7 +58652,7 @@ var require_to_json_schema = __commonJS((exports) => {
|
|
|
58652
58652
|
if (val === undefined) {
|
|
58653
58653
|
if (this.unrepresentable === "throw") {
|
|
58654
58654
|
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
58655
|
-
}
|
|
58655
|
+
}
|
|
58656
58656
|
} else if (typeof val === "bigint") {
|
|
58657
58657
|
if (this.unrepresentable === "throw") {
|
|
58658
58658
|
throw new Error("BigInt literals cannot be represented in JSON Schema");
|