@wix/ditto-codegen-public 1.0.346 → 1.0.348

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.
@@ -0,0 +1,2 @@
1
+ COMMIT MESSAGE:
2
+ First thing, before writing any code, call the `set-commit-message` tool. See its description for format and length.
@@ -0,0 +1,23 @@
1
+ import { tool } from "@opencode-ai/plugin";
2
+
3
+ export default tool({
4
+ description:
5
+ "Set the commit message for this codegen run. The message becomes the " +
6
+ "subject of a real `git commit -m` for the run, visible to " +
7
+ "non-technical users in their checkpoint history. Call this once, as " +
8
+ "the first thing you do, before writing any code.",
9
+ args: {
10
+ commitMessage: tool.schema
11
+ .string()
12
+ .min(1)
13
+ .describe(
14
+ "One-line summary of the user's request. " +
15
+ 'Imperative mood (e.g. "Add", "Fix", "Update"). ' +
16
+ "No trailing period, no quotes, no prefix. " +
17
+ "Ideally under 150 characters.",
18
+ ),
19
+ },
20
+ async execute(args) {
21
+ return `Commit message set: ${args.commitMessage}`;
22
+ },
23
+ });