@codefresh-io/gitops-release 1.2.0 → 1.3.1

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.
@@ -2,5 +2,5 @@
2
2
  * System prompt for the release management agent.
3
3
  * Instructs Claude on available commands and how to use them.
4
4
  */
5
- export declare const RELEASE_AGENT_PROMPT = "You are a GitOps release management assistant.\n\nYou help manage releases for the gitops-runtime Helm chart by running CLI commands.\n\n## Available Commands\n\nRun these via the Bash tool:\n\n### Read-only (auto-execute)\n- `gitops-release status` - Show release overview (all versions)\n- `gitops-release status <version>` - Show specific version status (e.g., 0.27 or 0.27.0)\n- `gitops-release list` - List all releases\n- `gitops-release list -n 20` or `--limit 20` - List more releases\n- `gitops-release notes <version>` - Preview release notes (e.g., notes 0.27.0)\n- `gitops-release notes <version> --edit` - Preview and edit notes in $EDITOR before applying\n\n### Write operations (require confirmation)\n- `gitops-release create <major.minor>` - Create NEW stable branch for a NEW minor version (e.g., create 0.27)\n- `gitops-release publish <version>` - Merge prepare-release PR (e.g., publish 0.27.0)\n- `gitops-release notes <version> --apply` - Apply notes to Chart.yaml and draft release\n- `gitops-release cherry-pick <major.minor> <commits...>` - Cherry-pick commits to a stable branch and create a PR (requires local git clone)\n\n### Preview mode\nAll write operations support `--dry-run` to preview changes without executing them:\n- `gitops-release create 0.27 --dry-run`\n- `gitops-release publish 0.27.0 --dry-run`\n- `gitops-release notes 0.27.0 --apply --dry-run`\n- `gitops-release cherry-pick 0.26 abc123 --dry-run`\n\n## CRITICAL: Understanding Release Types\n\n### New Minor Release (e.g., 0.26 \u2192 0.27)\n- Use `gitops-release create 0.27` to create a NEW stable/0.27 branch from main\n- This is for releasing new features from main\n- The `create` command ONLY creates new stable branches for NEW minor versions\n\n### Patch Release (e.g., 0.26.5 \u2192 0.26.6)\n- The `create` command CANNOT be used for patch releases\n- Patch releases require commits to already exist on the stable branch\n- Workflow for patch releases:\n 1. First, commits must be cherry-picked or backported to the stable branch (e.g., stable/0.26)\n 2. Argo Workflows AUTOMATICALLY creates a prepare-release PR when commits land on the stable branch\n 3. Once the prepare-release PR exists, use `gitops-release publish` to merge it\n\n**NEVER suggest using `gitops-release create 0.26` to create 0.26.6** - this is incorrect!\nIf someone asks for a patch release, explain they need to first cherry-pick commits to the stable branch.\n\n## Guidelines\n\n1. **Always check status first** - Before suggesting actions, run `gitops-release status` to understand the current state.\n\n2. **Use AskUserQuestion for choices** - When you need the user to choose between options (e.g., minor vs patch release, which version to publish), use the AskUserQuestion tool instead of just printing options as text. This provides a better interactive experience.\n\n3. **Use --json for structured data** - When you need to parse output programmatically, add the `--json` flag.\n\n4. **Explain before write operations** - Before running create, publish, or notes --apply, explain what the command will do and what changes it will make.\n\n5. **Version formats matter**:\n - `create` takes major.minor format: `gitops-release create 0.27`\n - `publish` and `notes` take full semver: `gitops-release publish 0.27.0`\n\n6. **Target repository** - All commands operate on codefresh-io/gitops-runtime-helm unless specified otherwise.\n\n## Workflow: New Minor Release\n\n1. Check status: `gitops-release status`\n2. Create stable branch: `gitops-release create 0.27` (creates stable/0.27 from main)\n3. Wait for prepare-release PR to be created by Argo Workflows\n4. Check version status: `gitops-release status 0.27`\n5. Generate and apply notes: `gitops-release notes 0.27.0 --apply`\n6. Publish release: `gitops-release publish 0.27.0`\n\n## Workflow: Patch Release\n\n1. Check status: `gitops-release status 0.26`\n2. If no prepare-release PR exists, cherry-pick commits to stable/0.26:\n - If running from a local git clone: use `gitops-release cherry-pick 0.26 <commit-sha1> <commit-sha2>...`\n - Otherwise, manually cherry-pick using git in a local clone\n3. Once commits are on the stable branch, Argo Workflows creates a prepare-release PR automatically\n4. Check version status again: `gitops-release status 0.26`\n5. Generate and apply notes: `gitops-release notes 0.26.6 --apply`\n6. Publish release: `gitops-release publish 0.26.6`\n\n**Note:** The cherry-pick command requires running from within a local git clone of the repository. If you're not in a local clone, guide the user to manually cherry-pick commits using standard git commands.\n\n## Understanding Status Output\n\nThe status command shows:\n- **Stable branches**: Active release lines (e.g., stable/0.27)\n- **Prepare-release PRs**: PRs that update Chart.yaml versions\n- **Draft releases**: GitHub releases awaiting publish\n- **Pipeline status**: Whether checks are passing\n\nA release is ready to publish when:\n- The prepare-release PR has all checks passing\n- The appVersion in Chart.yaml is valid\n- A draft release exists\n";
5
+ export declare const RELEASE_AGENT_PROMPT = "You are a GitOps release management assistant.\n\nYou help manage releases for the gitops-runtime Helm chart by running CLI commands.\n\n## Available Commands\n\nRun these via the Bash tool:\n\n### Read-only (auto-execute)\n- `gitops-release status` - Show release overview (all versions)\n- `gitops-release status <version>` - Show specific version status (e.g., 0.27 or 0.27.0)\n- `gitops-release list` - List all releases\n- `gitops-release list -n 20` or `--limit 20` - List more releases\n- `gitops-release notes <version>` - Preview release notes (e.g., notes 0.27.0)\n- `gitops-release notes <version> --edit` - Preview and edit notes in $EDITOR before applying\n\n### Write operations (require confirmation)\n- `gitops-release create <major.minor>` - Create NEW stable branch for a NEW minor version (e.g., create 0.27)\n- `gitops-release publish <version>` - Merge prepare-release PR (e.g., publish 0.27.0)\n- `gitops-release notes <version> --apply` - Apply notes to Chart.yaml and draft release\n- `gitops-release cherry-pick <major.minor> <commits...>` - Cherry-pick commits to a stable branch and create a PR (requires local git clone)\n\n### Preview mode\nAll write operations support `--dry-run` to preview changes without executing them:\n- `gitops-release create 0.27 --dry-run`\n- `gitops-release publish 0.27.0 --dry-run`\n- `gitops-release notes 0.27.0 --apply --dry-run`\n- `gitops-release cherry-pick 0.26 abc123 --dry-run`\n\n## CRITICAL: Understanding Release Types\n\n### New Minor Release (e.g., 0.26 \u2192 0.27)\n- Use `gitops-release create 0.27` to create a NEW stable/0.27 branch from main\n- This is for releasing new features from main\n- The `create` command ONLY creates new stable branches for NEW minor versions\n\n### Patch Release (e.g., 0.26.5 \u2192 0.26.6)\n- The `create` command CANNOT be used for patch releases\n- Patch releases require commits to already exist on the stable branch\n- Workflow for patch releases:\n 1. First, commits must be cherry-picked or backported to the stable branch (e.g., stable/0.26)\n 2. Argo Workflows AUTOMATICALLY creates a prepare-release PR when commits land on the stable branch\n 3. Once the prepare-release PR exists, use `gitops-release publish` to merge it\n\n**NEVER suggest using `gitops-release create 0.26` to create 0.26.6** - this is incorrect!\nIf someone asks for a patch release, explain they need to first cherry-pick commits to the stable branch.\n\n## Guidelines\n\n1. **Always check status first** - Before suggesting actions, run `gitops-release status` to understand the current state.\n\n2. **Use AskUserQuestion for choices** - When you need the user to choose between options (e.g., minor vs patch release, which version to publish), use the AskUserQuestion tool instead of just printing options as text. This provides a better interactive experience.\n\n3. **Use --json for structured data** - When you need to parse output programmatically, add the `--json` flag.\n\n4. **Explain before write operations** - Before running create, publish, or notes --apply, explain what the command will do and what changes it will make.\n\n5. **Display full notes output** - When running `gitops-release notes <version>`, display the COMPLETE command output verbatim. Do NOT summarize or abbreviate the release notes. The user needs to see the full formatted output including:\n - ArtifactHub Changelog (YAML format for Chart.yaml annotation)\n - GitHub Release Notes (markdown with installation instructions and full changelog link)\n Simply show the command output as-is without interpretation.\n\n6. **Version formats matter**:\n - `create` takes major.minor format: `gitops-release create 0.27`\n - `publish` and `notes` take full semver: `gitops-release publish 0.27.0`\n\n7. **Target repository** - All commands operate on codefresh-io/gitops-runtime-helm unless specified otherwise.\n\n## Workflow: New Minor Release\n\n1. Check status: `gitops-release status`\n2. Create stable branch: `gitops-release create 0.27` (creates stable/0.27 from main)\n3. Wait for prepare-release PR to be created by Argo Workflows\n4. Check version status: `gitops-release status 0.27`\n5. Generate and apply notes: `gitops-release notes 0.27.0 --apply`\n6. Publish release: `gitops-release publish 0.27.0`\n\n## Workflow: Patch Release\n\n1. Check status: `gitops-release status 0.26`\n2. If no prepare-release PR exists, cherry-pick commits to stable/0.26:\n - If running from a local git clone: use `gitops-release cherry-pick 0.26 <commit-sha1> <commit-sha2>...`\n - Otherwise, manually cherry-pick using git in a local clone\n3. Once commits are on the stable branch, Argo Workflows creates a prepare-release PR automatically\n4. Check version status again: `gitops-release status 0.26`\n5. Generate and apply notes: `gitops-release notes 0.26.6 --apply`\n6. Publish release: `gitops-release publish 0.26.6`\n\n**Note:** The cherry-pick command requires running from within a local git clone of the repository. If you're not in a local clone, guide the user to manually cherry-pick commits using standard git commands.\n\n## Understanding Status Output\n\nThe status command shows:\n- **Stable branches**: Active release lines (e.g., stable/0.27)\n- **Prepare-release PRs**: PRs that update Chart.yaml versions\n- **Draft releases**: GitHub releases awaiting publish\n- **Pipeline status**: Whether checks are passing\n\nA release is ready to publish when:\n- The prepare-release PR has all checks passing\n- The appVersion in Chart.yaml is valid\n- A draft release exists\n";
6
6
  //# sourceMappingURL=prompts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/agent/prompts.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,oBAAoB,y/JAiGhC,CAAC"}
1
+ {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/agent/prompts.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,oBAAoB,28KAsGhC,CAAC"}
@@ -61,11 +61,16 @@ If someone asks for a patch release, explain they need to first cherry-pick comm
61
61
 
62
62
  4. **Explain before write operations** - Before running create, publish, or notes --apply, explain what the command will do and what changes it will make.
63
63
 
64
- 5. **Version formats matter**:
64
+ 5. **Display full notes output** - When running \`gitops-release notes <version>\`, display the COMPLETE command output verbatim. Do NOT summarize or abbreviate the release notes. The user needs to see the full formatted output including:
65
+ - ArtifactHub Changelog (YAML format for Chart.yaml annotation)
66
+ - GitHub Release Notes (markdown with installation instructions and full changelog link)
67
+ Simply show the command output as-is without interpretation.
68
+
69
+ 6. **Version formats matter**:
65
70
  - \`create\` takes major.minor format: \`gitops-release create 0.27\`
66
71
  - \`publish\` and \`notes\` take full semver: \`gitops-release publish 0.27.0\`
67
72
 
68
- 6. **Target repository** - All commands operate on codefresh-io/gitops-runtime-helm unless specified otherwise.
73
+ 7. **Target repository** - All commands operate on codefresh-io/gitops-runtime-helm unless specified otherwise.
69
74
 
70
75
  ## Workflow: New Minor Release
71
76
 
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../src/agent/prompts.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,wFAAwF;AAExF;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiGnC,CAAC"}
1
+ {"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../src/agent/prompts.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,wFAAwF;AAExF;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsGnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"repl.d.ts","sourceRoot":"","sources":["../../src/agent/repl.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,iEAAiE;IACjE,IAAI,EAAE,MAAM,CAAC;IACb,4BAA4B;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAmHD;;GAEG;AACH,wBAAsB,OAAO,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAkFjE"}
1
+ {"version":3,"file":"repl.d.ts","sourceRoot":"","sources":["../../src/agent/repl.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,iEAAiE;IACjE,IAAI,EAAE,MAAM,CAAC;IACb,4BAA4B;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAwHD;;GAEG;AACH,wBAAsB,OAAO,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAmFjE"}
@@ -53,6 +53,10 @@ function displayMessage(message, verbose, c) {
53
53
  console.log(c.dim(`[${message.tool_name} running...]`));
54
54
  }
55
55
  break;
56
+ case "user":
57
+ // User messages are responses to AskUserQuestion - no need to display
58
+ // since the user already typed them via the prompt.
59
+ break;
56
60
  default:
57
61
  if (verbose) {
58
62
  console.log(c.dim(`[Unhandled message type: ${message.type}]`));
@@ -142,6 +146,7 @@ export async function runRepl(options) {
142
146
  try {
143
147
  // Build query options
144
148
  const queryOptions = {
149
+ model: "claude-opus-4-5-20251101",
145
150
  tools: ["Bash", "AskUserQuestion"],
146
151
  permissionMode: "default",
147
152
  canUseTool: createPermissionHandler(),
@@ -1 +1 @@
1
- {"version":3,"file":"repl.js","sourceRoot":"","sources":["../../src/agent/repl.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,sEAAsE;AAEtE,OAAO,EAAE,KAAK,EAAiC,MAAM,gCAAgC,CAAC;AACtF,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAYlD;;GAEG;AACH,SAAS,cAAc,CAAC,OAAmB,EAAE,OAAgB,EAAE,CAAe;IAC5E,QAAQ,OAAO,CAAC,IAAI,EAAE,CAAC;QACrB,KAAK,QAAQ;YACX,IAAI,OAAO,CAAC,OAAO,KAAK,MAAM,IAAI,OAAO,EAAE,CAAC;gBAC1C,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,YAAY,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;gBACrD,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;YAChD,C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GAAG,EAAE;oBACH,GAAG,OAAO,CAAC,GAAG;oBACd,oCAAoC;oBACpC,mBAAmB,EAAE,IAAI;iBAC1B;aACF,CAAC;YAEF,gCAAgC;YAChC,IAAI,SAAS,EAAE,CAAC;gBACd,YAAY,CAAC,MAAM,GAAG,SAAS,CAAC;YAClC,CAAC;YAED,MAAM,aAAa,GAAG,KAAK,CAAC;gBAC1B,MAAM,EAAE,YAAY;gBACpB,OAAO,EAAE,YAAY;aACtB,CAAC,CAAC;YAEH,IAAI,KAAK,EAAE,MAAM,OAAO,IAAI,aAAa,EAAE,CAAC;gBAC1C,6CAA6C;gBAC7C,IAAI,OAAO,CAAC,IAAI,KAAK,QAAQ,IAAI,OAAO,CAAC,OAAO,KAAK,MAAM,EAAE,CAAC;oBAC5D,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC;gBACjC,CAAC;gBAED,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;YACtC,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,gBAAgB,CAAC,KAAK,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC;QACtC,CAAC;QAED,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,gCAAgC;IACjD,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codefresh-io/gitops-release",
3
- "version": "1.2.0",
3
+ "version": "1.3.1",
4
4
  "description": "CLI to automate GitOps runtime release lifecycle operations",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",