@leitwerk-dev/process-analysis 0.1.2 → 0.1.4
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/actions.d.ts +32 -0
- package/dist/actions.d.ts.map +1 -0
- package/dist/actions.js +36 -0
- package/dist/actions.js.map +1 -0
- package/dist/index.d.ts +12 -116
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +32 -589
- package/dist/index.js.map +1 -1
- package/dist/params.d.ts +18 -0
- package/dist/params.d.ts.map +1 -0
- package/dist/params.js +25 -0
- package/dist/params.js.map +1 -0
- package/dist/process-definition.d.ts +12 -0
- package/dist/process-definition.d.ts.map +1 -0
- package/dist/process-definition.js +266 -0
- package/dist/process-definition.js.map +1 -0
- package/dist/process-ref.d.ts +10 -0
- package/dist/process-ref.d.ts.map +1 -0
- package/dist/process-ref.js +37 -0
- package/dist/process-ref.js.map +1 -0
- package/dist/server-runtime.d.ts +16 -0
- package/dist/server-runtime.d.ts.map +1 -0
- package/dist/server-runtime.js +52 -0
- package/dist/server-runtime.js.map +1 -0
- package/dist/snapshot-downloader.d.ts +6 -0
- package/dist/snapshot-downloader.d.ts.map +1 -0
- package/dist/snapshot-downloader.js +61 -0
- package/dist/snapshot-downloader.js.map +1 -0
- package/dist/snapshot-markdown.d.ts +8 -0
- package/dist/snapshot-markdown.d.ts.map +1 -0
- package/dist/snapshot-markdown.js +34 -0
- package/dist/snapshot-markdown.js.map +1 -0
- package/dist/state.d.ts +14 -0
- package/dist/state.d.ts.map +1 -0
- package/dist/state.js +31 -0
- package/dist/state.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const processAnalysisActionIds: {
|
|
2
|
+
readonly completeAnalysis: "complete_analysis";
|
|
3
|
+
readonly askFollowup: "ask_followup";
|
|
4
|
+
readonly refineAnalysis: "refine_analysis";
|
|
5
|
+
readonly refreshSnapshot: "refresh_snapshot";
|
|
6
|
+
readonly startLocalRepoChange: "start_local_repo_change";
|
|
7
|
+
};
|
|
8
|
+
export declare const followupForm: {
|
|
9
|
+
id: string;
|
|
10
|
+
title: string;
|
|
11
|
+
fields: {
|
|
12
|
+
id: string;
|
|
13
|
+
label: string;
|
|
14
|
+
kind: "textarea";
|
|
15
|
+
primaryPrompt: true;
|
|
16
|
+
required: boolean;
|
|
17
|
+
}[];
|
|
18
|
+
submitLabel: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const handoffForm: {
|
|
21
|
+
id: string;
|
|
22
|
+
title: string;
|
|
23
|
+
fields: {
|
|
24
|
+
id: string;
|
|
25
|
+
label: string;
|
|
26
|
+
kind: "textarea";
|
|
27
|
+
primaryPrompt: true;
|
|
28
|
+
description: string;
|
|
29
|
+
}[];
|
|
30
|
+
submitLabel: string;
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB;;;;;;CAM3B,CAAC;AAEX,eAAO,MAAM,YAAY;;;;;;;;;;;CAaxB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;CAavB,CAAC"}
|
package/dist/actions.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export const processAnalysisActionIds = {
|
|
2
|
+
completeAnalysis: "complete_analysis",
|
|
3
|
+
askFollowup: "ask_followup",
|
|
4
|
+
refineAnalysis: "refine_analysis",
|
|
5
|
+
refreshSnapshot: "refresh_snapshot",
|
|
6
|
+
startLocalRepoChange: "start_local_repo_change",
|
|
7
|
+
};
|
|
8
|
+
export const followupForm = {
|
|
9
|
+
id: "process_analysis_followup",
|
|
10
|
+
title: "Follow up",
|
|
11
|
+
fields: [
|
|
12
|
+
{
|
|
13
|
+
id: "message",
|
|
14
|
+
label: "Question or refinement",
|
|
15
|
+
kind: "textarea",
|
|
16
|
+
primaryPrompt: true,
|
|
17
|
+
required: true,
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
submitLabel: "Send",
|
|
21
|
+
};
|
|
22
|
+
export const handoffForm = {
|
|
23
|
+
id: "process_analysis_handoff",
|
|
24
|
+
title: "Start Local Repo Change",
|
|
25
|
+
fields: [
|
|
26
|
+
{
|
|
27
|
+
id: "note",
|
|
28
|
+
label: "Handoff note",
|
|
29
|
+
kind: "textarea",
|
|
30
|
+
primaryPrompt: true,
|
|
31
|
+
description: "Optional implementation direction to prepend to the analysis.",
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
submitLabel: "Start change",
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACvC,gBAAgB,EAAE,mBAAmB;IACrC,WAAW,EAAE,cAAc;IAC3B,cAAc,EAAE,iBAAiB;IACjC,eAAe,EAAE,kBAAkB;IACnC,oBAAoB,EAAE,yBAAyB;CACtC,CAAC;AAEX,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B,EAAE,EAAE,2BAA2B;IAC/B,KAAK,EAAE,WAAW;IAClB,MAAM,EAAE;QACP;YACC,EAAE,EAAE,SAAS;YACb,KAAK,EAAE,wBAAwB;YAC/B,IAAI,EAAE,UAAmB;YACzB,aAAa,EAAE,IAAa;YAC5B,QAAQ,EAAE,IAAI;SACd;KACD;IACD,WAAW,EAAE,MAAM;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,EAAE,EAAE,0BAA0B;IAC9B,KAAK,EAAE,yBAAyB;IAChC,MAAM,EAAE;QACP;YACC,EAAE,EAAE,MAAM;YACV,KAAK,EAAE,cAAc;YACrB,IAAI,EAAE,UAAmB;YACzB,aAAa,EAAE,IAAa;YAC5B,WAAW,EAAE,+DAA+D;SAC5E;KACD;IACD,WAAW,EAAE,cAAc;CAC3B,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,121 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { LocalRepoChangeLaunchPlanner } from '@leitwerk-dev/local-repo-change';
|
|
4
|
-
|
|
5
|
-
declare const processAnalysisActionIds: {
|
|
6
|
-
readonly completeAnalysis: "complete_analysis";
|
|
7
|
-
readonly askFollowup: "ask_followup";
|
|
8
|
-
readonly refineAnalysis: "refine_analysis";
|
|
9
|
-
readonly refreshSnapshot: "refresh_snapshot";
|
|
10
|
-
readonly startLocalRepoChange: "start_local_repo_change";
|
|
11
|
-
};
|
|
12
|
-
declare const followupForm: {
|
|
13
|
-
id: string;
|
|
14
|
-
title: string;
|
|
15
|
-
fields: {
|
|
16
|
-
id: string;
|
|
17
|
-
label: string;
|
|
18
|
-
kind: "textarea";
|
|
19
|
-
primaryPrompt: true;
|
|
20
|
-
required: boolean;
|
|
21
|
-
}[];
|
|
22
|
-
submitLabel: string;
|
|
23
|
-
};
|
|
24
|
-
declare const handoffForm: {
|
|
25
|
-
id: string;
|
|
26
|
-
title: string;
|
|
27
|
-
fields: {
|
|
28
|
-
id: string;
|
|
29
|
-
label: string;
|
|
30
|
-
kind: "textarea";
|
|
31
|
-
primaryPrompt: true;
|
|
32
|
-
description: string;
|
|
33
|
-
}[];
|
|
34
|
-
submitLabel: string;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
interface ProcessAnalysisParams {
|
|
38
|
-
processRef: string;
|
|
39
|
-
instruction: string;
|
|
40
|
-
/** Hidden launch param: absolute directory where the server was started. */
|
|
41
|
-
analysisCwd: string;
|
|
42
|
-
}
|
|
43
|
-
declare const processAnalysisParamsCodec: Codec<ProcessAnalysisParams>;
|
|
44
|
-
/** Visible fields validated at launch time. analysisCwd is merged by the launcher. */
|
|
45
|
-
type VisibleProcessAnalysisParams = Omit<ProcessAnalysisParams, "analysisCwd">;
|
|
46
|
-
declare function validateProcessAnalysisLaunchInput(input: Record<string, unknown>): {
|
|
47
|
-
ok: true;
|
|
48
|
-
value: VisibleProcessAnalysisParams;
|
|
49
|
-
} | {
|
|
50
|
-
ok: false;
|
|
51
|
-
errors: readonly LauncherValidationError[];
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
interface ProcessAnalysisSnapshotState {
|
|
55
|
-
sourceProcessId: string;
|
|
56
|
-
apiUrl: string;
|
|
57
|
-
snapshotDir: string;
|
|
58
|
-
primaryPath?: unknown;
|
|
59
|
-
downloadedAt: string;
|
|
60
|
-
}
|
|
61
|
-
interface ProcessAnalysisState extends StructuralProcessState {
|
|
62
|
-
snapshot: ProcessAnalysisSnapshotState | null;
|
|
63
|
-
pendingHandoffInput: Record<string, unknown> | null;
|
|
64
|
-
}
|
|
65
|
-
declare const processAnalysisStateCodec: Codec<ProcessAnalysisState>;
|
|
66
|
-
|
|
67
|
-
declare function createProcessAnalysisProcess(launchPlanner?: LocalRepoChangeLaunchPlanner): _leitwerk_dev_process_sdk.ProcessDefinition<ProcessAnalysisParams, ProcessAnalysisState>;
|
|
68
|
-
declare const processAnalysisProcess: _leitwerk_dev_process_sdk.ProcessDefinition<ProcessAnalysisParams, ProcessAnalysisState>;
|
|
69
|
-
declare const processAnalysisTurnIds: {
|
|
70
|
-
readonly downloadProcess: "download_process";
|
|
71
|
-
readonly analyzeProcess: "analyze_process";
|
|
72
|
-
readonly analysisDecision: "analysis_decision";
|
|
73
|
-
readonly handoff: "handoff_local_repo_change";
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
interface ResolvedProcessRef {
|
|
77
|
-
id: string;
|
|
78
|
-
origin: string;
|
|
79
|
-
apiUrl: string;
|
|
80
|
-
}
|
|
81
|
-
declare function resolveProcessRef(input: {
|
|
82
|
-
processRef: string;
|
|
83
|
-
serverBaseUrl: string;
|
|
84
|
-
}): ResolvedProcessRef;
|
|
85
|
-
|
|
86
|
-
interface ProcessAnalysisRuntime {
|
|
87
|
-
analysisCwd: string;
|
|
88
|
-
serverBaseUrl: string;
|
|
89
|
-
processWorkspacesDir: string | null;
|
|
90
|
-
processLaunches: ProcessLaunchExecutorLike | null;
|
|
91
|
-
}
|
|
92
|
-
declare function configureProcessAnalysisRuntime(overrides: Partial<ProcessAnalysisRuntime>): void;
|
|
93
|
-
declare function getProcessAnalysisRuntime(): ProcessAnalysisRuntime;
|
|
94
|
-
interface ProcessAnalysisRuntimeRepoConfig {
|
|
95
|
-
repoLocator: string;
|
|
96
|
-
baseBranch: string;
|
|
97
|
-
}
|
|
98
|
-
declare function isProcessAnalysisRuntimeGitRepo(): Promise<boolean>;
|
|
99
|
-
declare function resolveProcessAnalysisRuntimeRepoConfig(): Promise<ProcessAnalysisRuntimeRepoConfig>;
|
|
100
|
-
|
|
101
|
-
declare function downloadProcessSnapshot(input: {
|
|
102
|
-
analysisProcessId: string;
|
|
103
|
-
processRef: string;
|
|
104
|
-
}): Promise<ProcessAnalysisSnapshotState>;
|
|
105
|
-
|
|
106
|
-
declare function jsonMarkdown(title: string, value: unknown): string;
|
|
107
|
-
declare function buildSummaryMarkdown(input: {
|
|
108
|
-
detail: unknown;
|
|
109
|
-
primaryPath: unknown;
|
|
110
|
-
sourceUrl: string;
|
|
111
|
-
}): string;
|
|
112
|
-
declare function buildRecordsMarkdown(title: string, value: unknown): string;
|
|
113
|
-
|
|
114
|
-
declare const manifest: {
|
|
1
|
+
import { type LeitwerkExtensionModule } from "@leitwerk-dev/process-sdk";
|
|
2
|
+
export declare const manifest: {
|
|
115
3
|
readonly id: "process-analysis";
|
|
116
4
|
readonly version: "0.1.0";
|
|
117
5
|
readonly optional: readonly ["local-repo-change"];
|
|
118
6
|
};
|
|
119
7
|
declare const processAnalysisExtension: LeitwerkExtensionModule;
|
|
120
|
-
|
|
121
|
-
export
|
|
8
|
+
export default processAnalysisExtension;
|
|
9
|
+
export * from "./actions.js";
|
|
10
|
+
export * from "./params.js";
|
|
11
|
+
export * from "./process-definition.js";
|
|
12
|
+
export * from "./process-ref.js";
|
|
13
|
+
export * from "./server-runtime.js";
|
|
14
|
+
export * from "./snapshot-downloader.js";
|
|
15
|
+
export * from "./snapshot-markdown.js";
|
|
16
|
+
export * from "./state.js";
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAI/F,eAAO,MAAM,QAAQ;;;;CAIX,CAAC;AAEX,QAAA,MAAM,wBAAwB,EAAE,uBAiB/B,CAAC;AAEF,eAAe,wBAAwB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC"}
|