@inkeep/agents-cli 0.0.0-dev-20260108221558 → 0.0.0-dev-20260109005442

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.
@@ -299,6 +299,36 @@ export default defineConfig({
299
299
  try {
300
300
  writeFileSync(configPath, configContent);
301
301
  console.log(chalk.green("✓"), `Created ${chalk.cyan(configPath)}`);
302
+ try {
303
+ const profileManager = new ProfileManager();
304
+ const localProfile = {
305
+ remote: {
306
+ manageApi: manageApiUrl,
307
+ manageUi: "http://localhost:3001",
308
+ runApi: runApiUrl
309
+ },
310
+ credential: "none",
311
+ environment: "development"
312
+ };
313
+ if (profileManager.profilesFileExists()) if (profileManager.loadProfiles().profiles.local) {
314
+ profileManager.setActiveProfile("local");
315
+ console.log(chalk.green("✓"), "Set local profile as active");
316
+ } else {
317
+ profileManager.addProfile("local", localProfile);
318
+ profileManager.setActiveProfile("local");
319
+ console.log(chalk.green("✓"), "Created and activated local profile");
320
+ }
321
+ else {
322
+ const profilesConfig = {
323
+ activeProfile: "local",
324
+ profiles: { local: localProfile }
325
+ };
326
+ profileManager.saveProfiles(profilesConfig);
327
+ console.log(chalk.green("✓"), "Created local profile");
328
+ }
329
+ } catch (profileError) {
330
+ console.log(chalk.yellow("⚠"), "Could not set up local profile:", profileError instanceof Error ? profileError.message : String(profileError));
331
+ }
302
332
  console.log(chalk.gray("\nYou can now use the Inkeep CLI commands."));
303
333
  const configDir = dirname(configPath);
304
334
  if (configDir !== process.cwd()) {
@@ -1,4 +1,4 @@
1
- import { CLOUD_REMOTE, DEFAULT_CLOUD_PROFILE, DEFAULT_PROFILES_CONFIG, explicitRemoteSchema, profileNameSchema, profileSchema, profilesConfigSchema, remoteSchema } from "./types.js";
1
+ import { CLOUD_REMOTE, DEFAULT_CLOUD_PROFILE, DEFAULT_LOCAL_PROFILE, DEFAULT_PROFILES_CONFIG, LOCAL_REMOTE, explicitRemoteSchema, profileNameSchema, profileSchema, profilesConfigSchema, remoteSchema } from "./types.js";
2
2
  import { ProfileError, ProfileManager, profileManager } from "./profile-manager.js";
3
3
 
4
- export { CLOUD_REMOTE, DEFAULT_CLOUD_PROFILE, DEFAULT_PROFILES_CONFIG, ProfileError, ProfileManager, explicitRemoteSchema, profileManager, profileNameSchema, profileSchema, profilesConfigSchema, remoteSchema };
4
+ export { CLOUD_REMOTE, DEFAULT_CLOUD_PROFILE, DEFAULT_LOCAL_PROFILE, DEFAULT_PROFILES_CONFIG, LOCAL_REMOTE, ProfileError, ProfileManager, explicitRemoteSchema, profileManager, profileNameSchema, profileSchema, profilesConfigSchema, remoteSchema };
@@ -57,6 +57,23 @@ const DEFAULT_PROFILES_CONFIG = {
57
57
  activeProfile: "cloud",
58
58
  profiles: { cloud: DEFAULT_CLOUD_PROFILE }
59
59
  };
60
+ /**
61
+ * Baked-in URLs for local development deployment
62
+ */
63
+ const LOCAL_REMOTE = {
64
+ manageApi: "http://localhost:3002",
65
+ manageUi: "http://localhost:3001",
66
+ runApi: "http://localhost:3003"
67
+ };
68
+ /**
69
+ * Default local profile configuration
70
+ * Note: credential is 'none' as local deployments typically don't require auth
71
+ */
72
+ const DEFAULT_LOCAL_PROFILE = {
73
+ remote: LOCAL_REMOTE,
74
+ credential: "none",
75
+ environment: "development"
76
+ };
60
77
 
61
78
  //#endregion
62
- export { CLOUD_REMOTE, DEFAULT_CLOUD_PROFILE, DEFAULT_PROFILES_CONFIG, explicitRemoteSchema, profileNameSchema, profileSchema, profilesConfigSchema, remoteSchema };
79
+ export { CLOUD_REMOTE, DEFAULT_CLOUD_PROFILE, DEFAULT_LOCAL_PROFILE, DEFAULT_PROFILES_CONFIG, LOCAL_REMOTE, explicitRemoteSchema, profileNameSchema, profileSchema, profilesConfigSchema, remoteSchema };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-cli",
3
- "version": "0.0.0-dev-20260108221558",
3
+ "version": "0.0.0-dev-20260109005442",
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-20260108221558",
44
- "@inkeep/agents-sdk": "^0.0.0-dev-20260108221558"
43
+ "@inkeep/agents-core": "^0.0.0-dev-20260109005442",
44
+ "@inkeep/agents-sdk": "^0.0.0-dev-20260109005442"
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-20260108221558",
56
+ "@inkeep/agents-manage-ui": "0.0.0-dev-20260109005442",
57
57
  "zod": "^4.1.11"
58
58
  },
59
59
  "publishConfig": {