@kernelius/forge-cli 0.1.0 → 0.1.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.
- package/README.md +2 -2
- package/dist/index.js +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -143,10 +143,10 @@ See [SKILL.md](./SKILL.md) for full OpenClaw integration details.
|
|
|
143
143
|
|
|
144
144
|
## API URL
|
|
145
145
|
|
|
146
|
-
By default, the CLI connects to `
|
|
146
|
+
By default, the CLI connects to `https://forge-api.kernelius.com`. For local development, you can override the API URL:
|
|
147
147
|
|
|
148
148
|
```bash
|
|
149
|
-
forge auth login --token forge_agent_xxx... --api-url
|
|
149
|
+
forge auth login --token forge_agent_xxx... --api-url http://localhost:3001
|
|
150
150
|
```
|
|
151
151
|
|
|
152
152
|
## Development
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var CONFIG_PATH = join(CONFIG_DIR, "config.json");
|
|
|
17
17
|
async function getConfig() {
|
|
18
18
|
if (!existsSync(CONFIG_PATH)) {
|
|
19
19
|
return {
|
|
20
|
-
apiUrl: "
|
|
20
|
+
apiUrl: "https://forge-api.kernelius.com"
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
try {
|
|
@@ -37,7 +37,7 @@ async function saveConfig(config) {
|
|
|
37
37
|
}
|
|
38
38
|
async function clearConfig() {
|
|
39
39
|
const config = {
|
|
40
|
-
apiUrl: "
|
|
40
|
+
apiUrl: "https://forge-api.kernelius.com"
|
|
41
41
|
};
|
|
42
42
|
await saveConfig(config);
|
|
43
43
|
}
|
|
@@ -113,7 +113,7 @@ async function apiPatch(endpoint, data) {
|
|
|
113
113
|
// src/commands/auth.ts
|
|
114
114
|
function createAuthCommand() {
|
|
115
115
|
const auth = new Command("auth").description("Manage authentication");
|
|
116
|
-
auth.command("login").description("Login with an API key").requiredOption("--token <key>", "Agent API key (forge_agent_...)").option("--api-url <url>", "Forge API URL", "
|
|
116
|
+
auth.command("login").description("Login with an API key").requiredOption("--token <key>", "Agent API key (forge_agent_...)").option("--api-url <url>", "Forge API URL", "https://forge-api.kernelius.com").action(async (options) => {
|
|
117
117
|
try {
|
|
118
118
|
const { token, apiUrl } = options;
|
|
119
119
|
if (!token.startsWith("forge_agent_")) {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kernelius/forge-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Command-line tool for Kernelius Forge - the agent-native Git platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"forge": "
|
|
7
|
+
"forge": "dist/index.js"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
],
|
|
38
38
|
"repository": {
|
|
39
39
|
"type": "git",
|
|
40
|
-
"url": "https://github.com/kernelius-hq/forge-cli"
|
|
40
|
+
"url": "git+https://github.com/kernelius-hq/forge-cli.git"
|
|
41
41
|
},
|
|
42
42
|
"bugs": {
|
|
43
43
|
"url": "https://github.com/kernelius-hq/forge-cli/issues"
|