@handong66/evidoc-local-app 0.1.0
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/src/index.d.ts +64 -0
- package/dist/src/index.js +1231 -0
- package/dist/src/index.js.map +1 -0
- package/package.json +28 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { type EvidocConfig, type DriftReport } from "@handong66/evidoc-core";
|
|
2
|
+
import { type LocalAppDashboardState, type LocalAppRepositoryState } from "@handong66/evidoc-dashboard";
|
|
3
|
+
export interface ScanLocalAppOptions {
|
|
4
|
+
autoInit?: boolean;
|
|
5
|
+
writeHistory?: boolean;
|
|
6
|
+
historyLimit?: number;
|
|
7
|
+
}
|
|
8
|
+
export type DirectorySelector = () => Promise<string | undefined>;
|
|
9
|
+
export interface LocalAppServerOptions extends ScanLocalAppOptions {
|
|
10
|
+
roots: string[];
|
|
11
|
+
host?: string;
|
|
12
|
+
port?: number;
|
|
13
|
+
openBrowser?: boolean;
|
|
14
|
+
watch?: boolean;
|
|
15
|
+
watchIntervalMs?: number;
|
|
16
|
+
selectDirectory?: DirectorySelector;
|
|
17
|
+
}
|
|
18
|
+
export interface LocalAppServer {
|
|
19
|
+
url: string;
|
|
20
|
+
port: number;
|
|
21
|
+
state: () => LocalAppDashboardState;
|
|
22
|
+
close: () => Promise<void>;
|
|
23
|
+
}
|
|
24
|
+
export interface LocalAppFileWriteResult {
|
|
25
|
+
path: string;
|
|
26
|
+
status: "created" | "updated" | "kept";
|
|
27
|
+
}
|
|
28
|
+
export type ScaffoldFeature = "agents" | "hooks" | "ci" | "badge" | "llms";
|
|
29
|
+
export interface ScaffoldResult {
|
|
30
|
+
feature: ScaffoldFeature;
|
|
31
|
+
files: Array<{
|
|
32
|
+
path: string;
|
|
33
|
+
status: "created" | "updated" | "kept";
|
|
34
|
+
}>;
|
|
35
|
+
}
|
|
36
|
+
export declare function scanLocalAppRepositories(roots: string[], options?: ScanLocalAppOptions): Promise<LocalAppDashboardState>;
|
|
37
|
+
export declare function startLocalAppServer(options: LocalAppServerOptions): Promise<LocalAppServer>;
|
|
38
|
+
export declare function ensureLocalAppConfig(root: string): Promise<"created" | "kept">;
|
|
39
|
+
export declare function ensureLocalHistoryGitignore(root: string): Promise<LocalAppFileWriteResult>;
|
|
40
|
+
export declare function inspectLocalGitGate(root: string, report?: DriftReport): Promise<NonNullable<LocalAppRepositoryState["localGit"]>>;
|
|
41
|
+
export declare function enableLocalGitGate(root: string, options?: {
|
|
42
|
+
force?: boolean;
|
|
43
|
+
installHooks?: boolean;
|
|
44
|
+
}): Promise<{
|
|
45
|
+
files: LocalAppFileWriteResult[];
|
|
46
|
+
installed: boolean;
|
|
47
|
+
hooksPath?: string;
|
|
48
|
+
}>;
|
|
49
|
+
export declare function enableGithubAction(root: string, options?: {
|
|
50
|
+
force?: boolean;
|
|
51
|
+
}): Promise<{
|
|
52
|
+
path: string;
|
|
53
|
+
status: "created" | "updated" | "kept";
|
|
54
|
+
}>;
|
|
55
|
+
export declare function createDefaultEvidocConfig(root: string): Promise<EvidocConfig>;
|
|
56
|
+
export declare function defaultGithubWorkflow(options?: {
|
|
57
|
+
pushBranches?: string[];
|
|
58
|
+
}): string;
|
|
59
|
+
export declare function detectRepositoryDefaultBranch(root: string): Promise<string | undefined>;
|
|
60
|
+
export declare function detectRepositoryPushBranches(root: string): Promise<string[]>;
|
|
61
|
+
export declare function scaffoldRepository(root: string, options: {
|
|
62
|
+
features: ScaffoldFeature[];
|
|
63
|
+
force?: boolean;
|
|
64
|
+
}): Promise<ScaffoldResult[]>;
|