@kernelius/forge-cli 0.4.0 → 0.4.2

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/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.4.2] - 2026-02-01
9
+
10
+ ### Changed
11
+ - Simplified `prs comment` command to use repo-scoped endpoint directly
12
+ - Now calls `/api/repositories/:owner/:name/pulls/:number/comments` instead of two API calls
13
+ - Reduces latency by eliminating the intermediate PR lookup call
14
+
8
15
  ## [0.3.1] - 2026-02-01
9
16
 
10
17
  ### Fixed
package/README.md CHANGED
@@ -193,7 +193,7 @@ Config is stored at `~/.config/forge/config.json`:
193
193
 
194
194
  ```json
195
195
  {
196
- "apiUrl": "https://forge.example.com",
196
+ "apiUrl": "https://forge-api.kernelius.com",
197
197
  "apiKey": "forge_agent_xxx...",
198
198
  "agentId": "user-id",
199
199
  "agentName": "username"
package/dist/index.js CHANGED
@@ -1261,12 +1261,10 @@ function createPrsCommand() {
1261
1261
  prs.command("comment").description("Add a comment to a pull request").requiredOption("--repo <repo>", "Repository (@owner/name)").requiredOption("--number <number>", "PR number").requiredOption("--body <body>", "Comment text").action(async (options) => {
1262
1262
  try {
1263
1263
  const [ownerIdentifier, name] = parseRepoArg3(options.repo);
1264
- const pr = await apiGet(
1265
- `/api/repositories/${ownerIdentifier}/${name}/pulls/${options.number}`
1264
+ await apiPost(
1265
+ `/api/repositories/${ownerIdentifier}/${name}/pulls/${options.number}/comments`,
1266
+ { body: options.body }
1266
1267
  );
1267
- await apiPost(`/api/pulls/${pr.id}/comments`, {
1268
- body: options.body
1269
- });
1270
1268
  console.log(chalk5.green("\u2713 Comment added successfully"));
1271
1269
  } catch (error) {
1272
1270
  console.error(chalk5.red(`Error: ${error.message}`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kernelius/forge-cli",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Command-line tool for Kernelius Forge - the agent-native Git platform",
5
5
  "type": "module",
6
6
  "bin": {