chore: include pre-built dist for github install
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import type { OhMyOpenCodeConfig } from "../../config/schema";
|
||||
export declare function getSessionTaskDir(config: Partial<OhMyOpenCodeConfig>, sessionID: string): string;
|
||||
export declare function listSessionTaskFiles(config: Partial<OhMyOpenCodeConfig>, sessionID: string): string[];
|
||||
export declare function listAllSessionDirs(config: Partial<OhMyOpenCodeConfig>): string[];
|
||||
export interface TaskLocation {
|
||||
path: string;
|
||||
sessionID: string;
|
||||
}
|
||||
export declare function findTaskAcrossSessions(config: Partial<OhMyOpenCodeConfig>, taskId: string): TaskLocation | null;
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
import type { z } from "zod";
|
||||
import type { OhMyOpenCodeConfig } from "../../config/schema";
|
||||
export declare function getTaskDir(config?: Partial<OhMyOpenCodeConfig>): string;
|
||||
export declare function sanitizePathSegment(value: string): string;
|
||||
export declare function resolveTaskListId(config?: Partial<OhMyOpenCodeConfig>): string;
|
||||
export declare function ensureDir(dirPath: string): void;
|
||||
export declare function readJsonSafe<T>(filePath: string, schema: z.ZodType<T>): T | null;
|
||||
export declare function writeJsonAtomic(filePath: string, data: unknown): void;
|
||||
export declare function generateTaskId(): string;
|
||||
export declare function listTaskFiles(config?: Partial<OhMyOpenCodeConfig>): string[];
|
||||
export declare function acquireLock(dirPath: string): {
|
||||
acquired: boolean;
|
||||
release: () => void;
|
||||
};
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
import { z } from "zod";
|
||||
export declare const TaskStatusSchema: z.ZodEnum<{
|
||||
pending: "pending";
|
||||
in_progress: "in_progress";
|
||||
completed: "completed";
|
||||
deleted: "deleted";
|
||||
}>;
|
||||
export type TaskStatus = z.infer<typeof TaskStatusSchema>;
|
||||
export declare const TaskSchema: z.ZodObject<{
|
||||
id: z.ZodString;
|
||||
subject: z.ZodString;
|
||||
description: z.ZodString;
|
||||
status: z.ZodEnum<{
|
||||
pending: "pending";
|
||||
in_progress: "in_progress";
|
||||
completed: "completed";
|
||||
deleted: "deleted";
|
||||
}>;
|
||||
activeForm: z.ZodOptional<z.ZodString>;
|
||||
blocks: z.ZodArray<z.ZodString>;
|
||||
blockedBy: z.ZodArray<z.ZodString>;
|
||||
owner: z.ZodOptional<z.ZodString>;
|
||||
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
||||
}, z.core.$strict>;
|
||||
export type Task = z.infer<typeof TaskSchema>;
|
||||
Reference in New Issue
Block a user