@leitwerk-dev/forgejo-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
@@ -36,12 +36,16 @@ changes; mappings affect future launches.
36
36
 
37
37
  The UI starts without a source issue. Each replay generates a new work branch.
38
38
  Issue launches retain their external issue identity and `leitwerk/issue-N` branch.
39
- Plans and implementations require operator approval. Optional review,
40
- simplification, and imported-plan routes share the coding process contracts.
39
+ The [shared workflow](../coding/README.md#streamlined-coordinated-changes) requires
40
+ plan approval, then simplifies and publishes automatically. UI launches can skip
41
+ plan approval or simplification; relaunch preserves both choices. Issue launches
42
+ read `leitwerk-skip-simplification` after implementation, never use labels to bypass
43
+ plan approval, and retain completed routing decisions on recovery.
41
44
 
42
45
  ## Delivery and recovery
43
46
 
44
- The automatic `deliver_change` turn commits with the server-pinned Forgejo Git
47
+ Unchanged work completes without a PR; source issues stay open, lose the trigger,
48
+ and receive a comment. Otherwise `deliver_change` commits with the server-pinned Forgejo Git
45
49
  identity, pushes a feature branch, and creates or reconciles one pull request.
46
50
  It records delivery progress, feedback acknowledgements/replies, and provider
47
51
  write receipts. External writes are durable and safe to retry.
@@ -85,20 +89,7 @@ At operator action, **Retry repair** retains the pending evidence. **Resume wait
85
89
  dismisses the pending feedback and adjustment, retaining accepted feedback cursors
86
90
  and remote delivery state while waiting for new evidence.
87
91
 
88
- ## Integration tests
89
-
90
- The composed workflow tests copy a pristine Git seed into an independent repository
91
- per scenario and use in-memory SQLite. They retain real Git, HTTP actions and worker
92
- IPC without repeating repository initialization. Failures report process and turn
93
- state before cleanup. File-backed persistence is covered separately below.
94
-
95
- ## Restart verification
96
-
97
- The provider sandbox's file-backed restart fixtures retain legacy issue/UI params,
98
- Forgejo-only project metadata, completed write receipts and waiting subscriptions.
99
- They reopen feedback, CI, conflict, operator and terminal deliveries, compare project,
100
- turn and session identities, and verify that changed profile mappings do not rebind
101
- existing work. A remote merge while the server is stopped completes after rearming.
92
+ A remote merge while the server is stopped completes after rearming.
102
93
  Lost PR responses and publication retries reconcile one PR without duplicate comments.
103
94
 
104
95
  ## API support
package/dist/index.d.ts CHANGED
@@ -12,15 +12,29 @@ export declare function createForgejoRepoChange(options: {
12
12
  /** @internal */
13
13
  launcher: {
14
14
  /** @internal */
15
- configure: (value: import("./launcher.js").LauncherDependencies | null) => void;
15
+ configure(value: import("./launcher.js").LauncherDependencies | null): void;
16
16
  /** @internal */
17
- preparationChecks: (_input: unknown, { params }: import("@leitwerk-dev/process-sdk").ProcessLaunchConfig<import("./params.js").ForgejoRepoChangeParams>) => readonly import("@leitwerk-dev/process-sdk").LaunchPreparationCheck<import("./params.js").ForgejoRepoChangeParams>[];
17
+ preparationChecks: (_input: unknown, { params }: import("@leitwerk-dev/process-sdk").ProcessLaunchConfig<import("./params.js").ForgejoRepoChangeParams>) => import("@leitwerk-dev/process-sdk").LaunchPreparationCheck<import("./params.js").ForgejoRepoChangeParams>[];
18
18
  /** @internal */
19
19
  resolveProfiles: (profile: string) => import("./profile-bindings.js").ProfileBinding;
20
20
  /** @internal */
21
21
  resolveGitIdentity: (profile: string) => Promise<import("@leitwerk-dev/forgejo").ForgejoGitIdentity>;
22
22
  /** @internal */
23
- launcher: import("@leitwerk-dev/process-sdk").ProcessLauncherDefinition<import("./params.js").ForgejoRepoChangeParams>;
23
+ launcher: import("@leitwerk-dev/process-sdk").ProcessLauncherDefinition<import("./params.js").ForgejoRepoChangeParams> & {
24
+ /** @internal */
25
+ resolveIssueLaunchConfig(event: {
26
+ /** @internal */
27
+ profile: string;
28
+ /** @internal */
29
+ repository: import("@leitwerk-dev/forgejo").ForgejoRepository;
30
+ /** @internal */
31
+ issue: Pick<import("@leitwerk-dev/forgejo").ForgejoIssue, "number" | "title" | "body" | "html_url">;
32
+ /** @internal */
33
+ labels: import("@leitwerk-dev/process-sdk").RepositoryIssueWatcherConfig["labels"];
34
+ }): Promise<import("@leitwerk-dev/process-sdk").ProcessLaunchConfig<import("./params.js").ForgejoRepoChangeParams>>;
35
+ };
36
+ /** @internal */
37
+ workflow: import("@leitwerk-dev/coding/repository-change-launch").RepositoryChangeWorkflow<import("./params.js").ForgejoRepoChangeParams>;
24
38
  };
25
39
  };
26
40
  export type { ForgejoRepoChangeParams } from "./params.js";
@@ -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;AAIzE,OAAO,EAAE,6BAA6B,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAevF,kGAAkG;AAClG,wBAAgB,uBAAuB,CAAC,OAAO,EAAE;IAChD,cAAc;IACd,MAAM,EAAE,OAAO,CAAC;CAChB;IAyBC,cAAc;;IAEd,cAAc;;IAEd,gBAAgB;;;;;;;;;;;;;EAGjB;AAED,YAAY,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,gBAAgB;AAChB,QAAA,MAAmB,gBAAgB,yBAA8C,CAAC;AAClF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAIzE,OAAO,EAAE,6BAA6B,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAevF,kGAAkG;AAClG,wBAAgB,uBAAuB,CAAC,OAAO,EAAE;IAChD,cAAc;IACd,MAAM,EAAE,OAAO,CAAC;CAChB;IAyBC,cAAc;;IAEd,cAAc;;IAEd,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGjB;AAED,YAAY,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,gBAAgB;AAChB,QAAA,MAAmB,gBAAgB,yBAA8C,CAAC;AAClF,eAAe,gBAAgB,CAAC"}