@leitwerk-dev/github-repo-change 0.3.0 → 0.4.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/README.md CHANGED
@@ -7,8 +7,11 @@ and this extension on the server and worker. The extension is opt-in.
7
7
  The UI launcher selects a server-owned GitHub profile, a visible repository, and
8
8
  a requested change. Launch checks repository visibility and SSH read/write access,
9
9
  pins the bot Git identity, and uses the default branch as the base. Replaying a UI
10
- launch generates a new work branch. Plans and implementations require operator
11
- approval before publication.
10
+ launch generates a new work branch. The [shared workflow](../coding/README.md#streamlined-coordinated-changes)
11
+ requires plan approval, then simplifies and publishes automatically. UI launches
12
+ can skip plan approval or simplification; relaunch preserves both choices.
13
+ Issue launches read `leitwerk-skip-simplification` after implementation, never use
14
+ labels to bypass plan approval, and retain completed routing decisions on recovery.
12
15
 
13
16
  ## Configuration
14
17
 
@@ -42,7 +45,8 @@ be overridden through launcher input; existing instances retain resolved wiring.
42
45
 
43
46
  ## Delivery and recovery
44
47
 
45
- The shared coding publication lifecycle commits and pushes the work branch, then
48
+ Unchanged work completes without a PR; source issues stay open, lose the trigger,
49
+ and receive a comment. Otherwise the shared lifecycle commits and pushes the work branch, then
46
50
  creates or reconciles one PR. It settles human feedback for two minutes, acknowledges
47
51
  it, and starts a fresh repair turn. Replies and other provider writes reconcile
48
52
  across retries. GitHub checks trigger repair only for the tracked request revision;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,7 @@
1
- import type { LeitwerkExtensionModule } from "@leitwerk-dev/process-sdk";
1
+ import { type GitHubGitIdentity } from "@leitwerk-dev/github";
2
+ import type { LaunchPreparationCheck, LeitwerkExtensionModule, ProcessLaunchConfig } from "@leitwerk-dev/process-sdk";
3
+ import { type LauncherDependencies } from "./launcher.js";
4
+ import type { GitHubRepoChangeParams } from "./params.js";
2
5
  /** @public */
3
6
  export declare const manifest: {
4
7
  /** @public */
@@ -18,19 +21,33 @@ export declare function createGitHubRepoChange(options: {
18
21
  /** @public */
19
22
  extension: LeitwerkExtensionModule;
20
23
  /** @public */
21
- process: import("@leitwerk-dev/process-sdk").ExtensionProcessDefinition<import("./params.js").GitHubRepoChangeParams, import("@leitwerk-dev/coding/repository-change-state").RepositoryChangeState>;
24
+ process: import("@leitwerk-dev/process-sdk").ExtensionProcessDefinition<GitHubRepoChangeParams, import("@leitwerk-dev/coding/repository-change-state").RepositoryChangeState>;
22
25
  /** @public */
23
26
  launcher: {
24
- /** @public */
25
- configure: (value: import("./launcher.js").LauncherDependencies | null) => void;
26
- /** @public */
27
- preparationChecks: (_input: unknown, { params }: import("@leitwerk-dev/process-sdk").ProcessLaunchConfig<import("./params.js").GitHubRepoChangeParams>) => readonly import("@leitwerk-dev/process-sdk").LaunchPreparationCheck<import("./params.js").GitHubRepoChangeParams>[];
28
- /** @public */
27
+ /** @internal */
28
+ configure(value: LauncherDependencies | null): void;
29
+ /** @internal */
30
+ preparationChecks: (_input: unknown, { params }: ProcessLaunchConfig<GitHubRepoChangeParams>) => LaunchPreparationCheck<GitHubRepoChangeParams>[];
31
+ /** @internal */
29
32
  resolveProfiles: (profile: string) => import("./profile-bindings.js").ProfileBinding;
30
- /** @public */
31
- resolveGitIdentity: (profile: string) => Promise<import("@leitwerk-dev/github").GitHubGitIdentity>;
32
- /** @public */
33
- launcher: import("@leitwerk-dev/process-sdk").ProcessLauncherDefinition<import("./params.js").GitHubRepoChangeParams>;
33
+ /** @internal */
34
+ resolveGitIdentity: (profile: string) => Promise<GitHubGitIdentity>;
35
+ /** @internal */
36
+ launcher: import("@leitwerk-dev/process-sdk").ProcessLauncherDefinition<GitHubRepoChangeParams> & {
37
+ /** @internal */
38
+ resolveIssueLaunchConfig(event: {
39
+ /** @internal */
40
+ profile: string;
41
+ /** @internal */
42
+ repository: import("@leitwerk-dev/github").GitHubRepository;
43
+ /** @internal */
44
+ issue: Pick<import("@leitwerk-dev/github").GitHubIssue, "number" | "title" | "body" | "html_url">;
45
+ /** @internal */
46
+ labels: import("@leitwerk-dev/process-sdk").RepositoryIssueWatcherConfig["labels"];
47
+ }): Promise<ProcessLaunchConfig<GitHubRepoChangeParams>>;
48
+ };
49
+ /** @internal */
50
+ workflow: import("@leitwerk-dev/coding/repository-change-launch").RepositoryChangeWorkflow<GitHubRepoChangeParams>;
34
51
  };
35
52
  };
36
53
  export * from "./launcher.js";
@@ -38,19 +55,51 @@ export * from "./params.js";
38
55
  export * from "./process.js";
39
56
  export * from "./profile-bindings.js";
40
57
  /** @public */
41
- export declare const defaultExtension: LeitwerkExtensionModule, githubRepoChangeProcess: import("@leitwerk-dev/process-sdk").ExtensionProcessDefinition<import("./params.js").GitHubRepoChangeParams, import("@leitwerk-dev/coding/repository-change-state").RepositoryChangeState>, defaultGitHubRepoChangeLauncher: {
42
- /** @public */
43
- configure: (value: import("./launcher.js").LauncherDependencies | null) => void;
44
- /** @public */
45
- preparationChecks: (_input: unknown, { params }: import("@leitwerk-dev/process-sdk").ProcessLaunchConfig<import("./params.js").GitHubRepoChangeParams>) => readonly import("@leitwerk-dev/process-sdk").LaunchPreparationCheck<import("./params.js").GitHubRepoChangeParams>[];
46
- /** @public */
58
+ export declare const defaultExtension: LeitwerkExtensionModule, githubRepoChangeProcess: import("@leitwerk-dev/process-sdk").ExtensionProcessDefinition<GitHubRepoChangeParams, import("@leitwerk-dev/coding/repository-change-state").RepositoryChangeState>, defaultGitHubRepoChangeLauncher: {
59
+ /** @internal */
60
+ configure(value: LauncherDependencies | null): void;
61
+ /** @internal */
62
+ preparationChecks: (_input: unknown, { params }: ProcessLaunchConfig<GitHubRepoChangeParams>) => LaunchPreparationCheck<GitHubRepoChangeParams>[];
63
+ /** @internal */
47
64
  resolveProfiles: (profile: string) => import("./profile-bindings.js").ProfileBinding;
48
- /** @public */
49
- resolveGitIdentity: (profile: string) => Promise<import("@leitwerk-dev/github").GitHubGitIdentity>;
50
- /** @public */
51
- launcher: import("@leitwerk-dev/process-sdk").ProcessLauncherDefinition<import("./params.js").GitHubRepoChangeParams>;
65
+ /** @internal */
66
+ resolveGitIdentity: (profile: string) => Promise<GitHubGitIdentity>;
67
+ /** @internal */
68
+ launcher: import("@leitwerk-dev/process-sdk").ProcessLauncherDefinition<GitHubRepoChangeParams> & {
69
+ /** @internal */
70
+ resolveIssueLaunchConfig(event: {
71
+ /** @internal */
72
+ profile: string;
73
+ /** @internal */
74
+ repository: import("@leitwerk-dev/github").GitHubRepository;
75
+ /** @internal */
76
+ issue: Pick<import("@leitwerk-dev/github").GitHubIssue, "number" | "title" | "body" | "html_url">;
77
+ /** @internal */
78
+ labels: import("@leitwerk-dev/process-sdk").RepositoryIssueWatcherConfig["labels"];
79
+ }): Promise<ProcessLaunchConfig<GitHubRepoChangeParams>>;
80
+ };
81
+ /** @internal */
82
+ workflow: import("@leitwerk-dev/coding/repository-change-launch").RepositoryChangeWorkflow<GitHubRepoChangeParams>;
52
83
  };
53
84
  /** @public */
54
- export declare const configureGitHubRepoChangeLauncher: (value: import("./launcher.js").LauncherDependencies | null) => void, githubRepositoryPreparationChecks: (_input: unknown, { params }: import("@leitwerk-dev/process-sdk").ProcessLaunchConfig<import("./params.js").GitHubRepoChangeParams>) => readonly import("@leitwerk-dev/process-sdk").LaunchPreparationCheck<import("./params.js").GitHubRepoChangeParams>[], resolveGitHubGitIdentity: (profile: string) => Promise<import("@leitwerk-dev/github").GitHubGitIdentity>, githubRepoChangeUiLauncher: import("@leitwerk-dev/process-sdk").ProcessLauncherDefinition<import("./params.js").GitHubRepoChangeParams>;
85
+ export declare const configureGitHubRepoChangeLauncher: (value: LauncherDependencies | null) => void;
86
+ /** @public */
87
+ export declare const githubRepositoryPreparationChecks: (input: unknown, launch: ProcessLaunchConfig<GitHubRepoChangeParams>) => readonly LaunchPreparationCheck<GitHubRepoChangeParams>[];
88
+ /** @public */
89
+ export declare const resolveGitHubGitIdentity: (profile: string) => Promise<GitHubGitIdentity>;
90
+ /** @public */
91
+ export declare const githubRepoChangeUiLauncher: import("@leitwerk-dev/process-sdk").ProcessLauncherDefinition<GitHubRepoChangeParams> & {
92
+ /** @internal */
93
+ resolveIssueLaunchConfig(event: {
94
+ /** @internal */
95
+ profile: string;
96
+ /** @internal */
97
+ repository: import("@leitwerk-dev/github").GitHubRepository;
98
+ /** @internal */
99
+ issue: Pick<import("@leitwerk-dev/github").GitHubIssue, "number" | "title" | "body" | "html_url">;
100
+ /** @internal */
101
+ labels: import("@leitwerk-dev/process-sdk").RepositoryIssueWatcherConfig["labels"];
102
+ }): Promise<ProcessLaunchConfig<GitHubRepoChangeParams>>;
103
+ };
55
104
  export default defaultExtension;
56
105
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAKzE,cAAc;AACd,eAAO,MAAM,QAAQ;IACpB,cAAc;;IAEd,cAAc;;IAEd,cAAc;;CAEL,CAAC;AAEX,0FAA0F;AAC1F,cAAc;AACd,cAAc;AACd,wBAAgB,sBAAsB,CAAC,OAAO,EAAE;IAC/C,cAAc;IACd,MAAM,EAAE,OAAO,CAAC;CAChB;IAyBC,cAAc;;IAEd,cAAc;;IAEd,cAAc;;;;;;;;;;;;;EAGf;AAED,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc;AACd,eAAO,MACK,gBAAgB,2BAClB,uBAAuB,8LACtB,+BAA+B;;;;;;;;;;;CACE,CAAC;AAC7C,cAAc;AACd,eAAO,MACK,iCAAiC,wEACzB,iCAAiC,+PAChC,wBAAwB,kFAClC,0BAA0B,6GACF,CAAC;AACpC,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,iBAAiB,EAAqB,MAA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