@inkeep/agents-cli 0.0.0-dev-20260109011400 → 0.0.0-dev-20260109013110

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.
@@ -230,6 +230,10 @@ async function localInitCommand(options) {
230
230
  }
231
231
  }
232
232
  if (existsSync(configPath)) {
233
+ if (options?.interactive === false) {
234
+ console.log(chalk.yellow(`Config file already exists at ${configPath}, skipping creation.`));
235
+ return;
236
+ }
233
237
  const overwrite = await p.confirm({
234
238
  message: `${basename(configPath)} already exists. Overwrite?`,
235
239
  initialValue: false
@@ -243,46 +247,58 @@ async function localInitCommand(options) {
243
247
  return;
244
248
  }
245
249
  }
246
- const tenantId = await p.text({
247
- message: "Enter your tenant ID:",
248
- validate: (input) => {
249
- if (!input || input.trim() === "") return "Tenant ID is required";
250
+ let tenantId;
251
+ let manageApiUrl;
252
+ let runApiUrl;
253
+ if (options?.interactive === false) {
254
+ tenantId = "default";
255
+ manageApiUrl = "http://localhost:3002";
256
+ runApiUrl = "http://localhost:3003";
257
+ } else {
258
+ const tenantIdInput = await p.text({
259
+ message: "Enter your tenant ID:",
260
+ validate: (input) => {
261
+ if (!input || input.trim() === "") return "Tenant ID is required";
262
+ }
263
+ });
264
+ if (p.isCancel(tenantIdInput)) {
265
+ p.cancel("Operation cancelled");
266
+ process.exit(0);
250
267
  }
251
- });
252
- if (p.isCancel(tenantId)) {
253
- p.cancel("Operation cancelled");
254
- process.exit(0);
255
- }
256
- const validateUrl = (input) => {
257
- try {
258
- if (input && input.trim() !== "") {
259
- new URL(input);
268
+ tenantId = tenantIdInput;
269
+ const validateUrl = (input) => {
270
+ try {
271
+ if (input && input.trim() !== "") {
272
+ new URL(input);
273
+ return;
274
+ }
260
275
  return;
276
+ } catch {
277
+ return "Please enter a valid URL";
261
278
  }
262
- return;
263
- } catch {
264
- return "Please enter a valid URL";
279
+ };
280
+ const manageApiUrlInput = await p.text({
281
+ message: "Enter the Management API URL:",
282
+ placeholder: "http://localhost:3002",
283
+ initialValue: "http://localhost:3002",
284
+ validate: validateUrl
285
+ });
286
+ if (p.isCancel(manageApiUrlInput)) {
287
+ p.cancel("Operation cancelled");
288
+ process.exit(0);
265
289
  }
266
- };
267
- const manageApiUrl = await p.text({
268
- message: "Enter the Management API URL:",
269
- placeholder: "http://localhost:3002",
270
- initialValue: "http://localhost:3002",
271
- validate: validateUrl
272
- });
273
- if (p.isCancel(manageApiUrl)) {
274
- p.cancel("Operation cancelled");
275
- process.exit(0);
276
- }
277
- const runApiUrl = await p.text({
278
- message: "Enter the Run API URL:",
279
- placeholder: "http://localhost:3003",
280
- initialValue: "http://localhost:3003",
281
- validate: validateUrl
282
- });
283
- if (p.isCancel(runApiUrl)) {
284
- p.cancel("Operation cancelled");
285
- process.exit(0);
290
+ manageApiUrl = manageApiUrlInput;
291
+ const runApiUrlInput = await p.text({
292
+ message: "Enter the Run API URL:",
293
+ placeholder: "http://localhost:3003",
294
+ initialValue: "http://localhost:3003",
295
+ validate: validateUrl
296
+ });
297
+ if (p.isCancel(runApiUrlInput)) {
298
+ p.cancel("Operation cancelled");
299
+ process.exit(0);
300
+ }
301
+ runApiUrl = runApiUrlInput;
286
302
  }
287
303
  const configContent = `import { defineConfig } from '@inkeep/agents-cli/config';
288
304
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-cli",
3
- "version": "0.0.0-dev-20260109011400",
3
+ "version": "0.0.0-dev-20260109013110",
4
4
  "description": "Inkeep CLI tool",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -40,8 +40,8 @@
40
40
  "ts-morph": "^26.0.0",
41
41
  "tsx": "^4.20.5",
42
42
  "yaml": "^2.7.0",
43
- "@inkeep/agents-core": "^0.0.0-dev-20260109011400",
44
- "@inkeep/agents-sdk": "^0.0.0-dev-20260109011400"
43
+ "@inkeep/agents-core": "^0.0.0-dev-20260109013110",
44
+ "@inkeep/agents-sdk": "^0.0.0-dev-20260109013110"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/degit": "^2.8.6",
@@ -53,7 +53,7 @@
53
53
  "vitest": "^3.2.4"
54
54
  },
55
55
  "peerDependencies": {
56
- "@inkeep/agents-manage-ui": "0.0.0-dev-20260109011400",
56
+ "@inkeep/agents-manage-ui": "0.0.0-dev-20260109013110",
57
57
  "zod": "^4.1.11"
58
58
  },
59
59
  "publishConfig": {